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


Please Help Members By Posting Answers For Below Questions

How do you use compareto in java?

561


What are inner classes or non static nested classes in java?

707


What is the type of lambda expression?

541


What is the association?

557


Give reasons supporting that string is immutable.

499






What is the difference between multitasking and multithreading in Java

723


What is the difference between conversation & casting?

582


Name and explain the types of ways which are used to pass arguments in any function in java.

571


What is a function in programming?

557


Define Multiprogramming and Multiprocessing in java.

581


Explain the significance of class loaders in bootstrap?

499


Detail discussions on JVM, memory management and garbage collector.

555


What is set in java?

531


What is application tier?

532


What is the difference between a method and a function in alice?

576