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 collections api?
What is object in java?
What do you understand by weak reference?
What access modifiers can be used for methods?
How is hashcode calculated in java?
What is difference between == equals () and compareto () method?
What is multithreading in java?
What is the ==?
Explain the importance of import keyword in java?
What is java reflection api?
How to create a base64 decoder in java8?
What does jre stand for?
What is garbage collection? What is the process that is responsible for doing that in java?
What are the important features of Java 11 release?
What is the difference between static (class) method and instance method?