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
What is a dynamic array java?
What is use of super keyword?
What is difference between call by value and call by reference?
Does java return by reference?
Why we used break and continue statement in java?
What are the Main functions of Java?
What is the largest long allowed by java?
When will you define a method as static?
Can a main method be declared final?
Can you declare the main method as final?
What is structure of java heap? What is perm gen space in heap?
Does string is thread-safe in java?
What is a local, member and a class variable?
What is the difference between jfc & wfc?
Can we extend singleton class in java?