/********************************************************************* * Author: Eric Heim * Date Created: 6/14/2011 * Course: CS0007 * Description: Times 2 multiplication table using the enhanced for * loop. *********************************************************************/ public class EnhancedForLoop { public static void main(String[] args) { int[] numbers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; for(int number : numbers) System.out.println(number + " * 2 = " + number*2); } }