Scenario: There are 1 to 100 numbers. Each number should be
keep in the each column like from A column to Z column ie 1
to 26. From 27 to 52 should be in 2nd row in the excel
sheet. This has to be continue till 100. How do you write
Java program and what are various methods.
Answer Posted / badrinath
int var=0,n=100/26;
for(int j=0;j<=n;j++){
for(int i=0;i<26;i++)
{ var=var+1;
if(var>100)
break;
System.out.print(var+"/");
}
System.out.println(); }
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does map works in java?
Describe the various concepts related to object oriented programming (oop).
Can we change the value of static variable?
Difference between a class and an object?
What is variable declaration and definition?
How does sublist works in java?
What do you mean by jjs in java8?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
what is object-oriented programming in java?
Can we cast any other type to boolean type with type casting?
What environment variables are required to be set on a machine in order to run Java programs?
Does java return by reference?
What is nullpointerexception?
Is constructor inherited?
What is == and === in javascript?