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 does map works in java?

524


Describe the various concepts related to object oriented programming (oop).

592


Can we change the value of static variable?

503


Difference between a class and an object?

584


What is variable declaration and definition?

545






How does sublist works in java?

544


What do you mean by jjs in java8?

562


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

563


what is object-oriented programming in java?

591


Can we cast any other type to boolean type with type casting?

543


What environment variables are required to be set on a machine in order to run Java programs?

624


Does java return by reference?

539


What is nullpointerexception?

563


Is constructor inherited?

536


What is == and === in javascript?

563