01: package test2;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: public class CCTest2 {
07:
08: public static void main(String[] args) {
09: List<String> l; //Check the CC after <
10:
11: l = new ArrayList<String>(); //Check the CC after <
12:
13: l.add("Hello, world"); //Check the signature of the method provided by the CC
14:
15: 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.
16: }
17: }
|