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 / rupesh
package com.ab.Demo;
public class demo
{
public static void main(String[] args)
{
for (int i=1;i<=100;i++ )
{
if (i%26==0)
{
System.out.print(i+"\t");
System.out.println("");
}
else
{
System.out.print(i+"\t");
}
}
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a substring of a string?
Can we have return statement in finally clause? What will happen?
What do you mean by synchronized non access modifier?
What is the similarity between dynamic binding and linking?
What is matcher in java?
What do you understand by weak reference?
How do you convert an int to a string in java?
What is ordered map in java?
Are arrays dynamic in java?
What class allows you to read objects directly from a stream?
Explain the protected field modifier?
When the constructor of a class is invoked?
What is ascii format?
Is java developer a good career?
How many arguments can be passed to main ()?