/********************************************************************* * Author: Eric Heim * Date Created: 6/7/2011 * Course: CS0007 * Description: Shows the basic usage of a while loop *********************************************************************/ public class WhileLoop { public static void main(String[] args) { int number = 1; while (number <= 5) { System.out.println("Hello!"); number++; } } }