KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ForEach


1 package test;
2 import java.util.List JavaDoc;
3
4
5 public class ForEach {
6     
7     public static void main(String JavaDoc[] args) {
8         List JavaDoc<String JavaDoc> s = null;
9         
10         for (String JavaDoc t : s) {
11             System.err.println(t);
12         }
13     }
14     
15 }
16
Popular Tags