01: package test12;
02:
03: public class CCTest12iv {
04:
05: public static void main(String[] args) {
06: List<String> l; //Check the CC after <
07:
08: l = new List<String>(); //Check the CC after <
09:
10: l.add("Hello, world"); //Check the signature of the method provided by the CC
11:
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: }
|