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