Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are keywords in java?

1053


What is the maximum size of list in java?

1018


How an object is serialized in java?

1039


What is the purpose of a default constructor?

1160


What is the difference between the ">>" and " >>>" operators in java?

1032


Difference between current previous versions of Java?

1080


What is a memory leak in java?

1132


What is the major drawback of internal iteration over external iteration?

1079


Why parameters should be passed by reference?

1008


What is oop in java?

1166


Can java inner class be static?

1074


Which is faster string or stringbuilder?

991


Why deletion in linkedlist is fast than arraylist?

1148


What's the purpose of static methods and static variables?

1157


Can we sort set in java?

1011