KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test3 > CCTest3i


1 package test3;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class CCTest3i {
7     
8     public static void main(String JavaDoc[] args) {
9         List JavaDoc<String JavaDoc> l;
10     
11     l = new ArrayList JavaDoc<String JavaDoc>();
12     
13         l.add("Hello, world");
14     
15     for (String JavaDoc s : l) {
16
17     }
18     }
19 }
20
Popular Tags