01: package test11;
02:
03: public class CCTest11iv {
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: }
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: }
|