Sunday, November 26, 2006

ForEachExample.java



      public class ForEachExample
{
 public static void main(String[] args)
 {
  int[] list = {1,2,3,4,5};
  
  for(int num: list)
   System.out.println(num);
 }
}

0 Comments:

Post a Comment

<< Home