KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test13 > CCTest13


1 package test13;
2
3 public class CCTest13 {
4     private static List<String JavaDoc> l; //Check the CC after <
5

6     public static void main(String JavaDoc[] args) {
7         l = new List<String JavaDoc>(); //Check the CC after <
8

9         l.add("Hello, world"); //Check the signature of the method provided by the CC
10

11     l.get(0).indexOf("Hello"); //Check the methods provided after the second dot. Check the type of the variable l shown after the first dot.
12
}
13     
14 }
15
Popular Tags