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 are keywords in java?
What is the maximum size of list in java?
How an object is serialized in java?
What is the purpose of a default constructor?
What is the difference between the ">>" and " >>>" operators in java?
Difference between current previous versions of Java?
What is a memory leak in java?
What is the major drawback of internal iteration over external iteration?
Why parameters should be passed by reference?
What is oop in java?
Can java inner class be static?
Which is faster string or stringbuilder?
Why deletion in linkedlist is fast than arraylist?
What's the purpose of static methods and static variables?
Can we sort set in java?