TestForIn.java
Select all
/* TestForIn.java David Klick 01/26/05 Demonstrate new for loop. */ public class TestForIn { public static void main(String[] args) { int[] num = { 5, 7, 1, 2, 9, 18, 4 }; for (int i : num) System.out.println(i); } }