File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

for loop

 
Tamana Joshi
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i m new to java,i want to be an efficient in loops(for),please suggest any link where i can find questions on that?
thankx in advance
 
Svend Rost
Ranch Hand
Posts: 904
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im not quite sure what you means..

If you want any questions concerning for loops, try Google or find
any half decent Java book for beginers.

If you want the syntax for a for-loop:
for( init variable; condition; iteration_statement)
{
//.. do stuff
}

e.g.
for(int i=0; i<10; i++)
{
System.out.print(i);
}

will print: 0123456789

Feel free to reply with followup question

/Svend Rost
 
Nigel Browne
Ranch Hand
Pie
Posts: 682
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial language basics will answer your questions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic