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 is the maximum size of a string in java?

1116


Can I learn java in 3 months?

1043


What is sortedset in java?

1039


What are the 3 types of loops in java?

1099


Which of the classes will have more memory allocated?

989


What are the uses of synchronized keyword?

1008


How do you convert an int to a double in java?

1073


What is an example of a boolean?

1079


How do you write a scanner class in java?

1028


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8127


What are the differences between heap and stack memory?

1100


When should the method invokelater() be used?

1037


what is instanceof operator used in java?

1046


What are pass by reference and pass by value?

999


Why are functions called methods in java?

1014