KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test1 > CCTest1i


1 package test1;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class CCTest1i {
7
8     
9     public static void main(String JavaDoc[] args) {
10         l = new ArrayList JavaDoc<String JavaDoc>(); //Check the CC after <
11

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

14     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.
15
}
16 }
17
Popular Tags