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 the maximum size of a string in java?
Can I learn java in 3 months?
What is sortedset in java?
What are the 3 types of loops in java?
Which of the classes will have more memory allocated?
What are the uses of synchronized keyword?
How do you convert an int to a double in java?
What is an example of a boolean?
How do you write a scanner class in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What are the differences between heap and stack memory?
When should the method invokelater() be used?
what is instanceof operator used in java?
What are pass by reference and pass by value?
Why are functions called methods in java?