01: package test11;
02:
03: public class CCTest11 {
04: private static List<String> l; //Check the CC after <
05:
06: public static void main(String[] args) {
07: l = new List<String>(); //Check the CC after <
08:
09: 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: private static class List<T> {
15: public void add(T t) {
16: //nothing...
17: }
18:
19: public T get(int index) {
20: return null;
21: }
22: }
23: }
|