Definition:
The for keyword is used to define the beginning of a for loop and is always written in lowercase.
Examples:
Using a for loop to print out the numbers from 1 to 10:
for (int i=1; i<=10; i++)
{
System.out.println(i);
}
By Paul Leahy, About.com
Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >
Easy ways to connect two computers for networking purposes. More >
©2009 About.com, a part of The New York Times Company.
All rights reserved.