KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test11 > CCTest11v


1 package test11;
2
3 public class CCTest11v {
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     }
12     
13     private static class List<T> {
14         public void add(T t) {
15             //nothing...
16
}
17         
18         public T get(int index) {
19             return null;
20         }
21     }
22 }
23
Popular Tags