/********************************************************************* * Author: Eric Heim * Date Created: 6/9/2011 * Course: CS0007 * Description: Shows the basic usage of a for loop by displaying * the numbers 1 through 10 and their squares. *********************************************************************/ public class ForLoop { public static void main(String[] args) { for(int number = 1; number <= 10; number++) { System.out.println(number + "\t\t" + number*number); } } }