public ListTest() {
this.coursesToSelect = new ArrayList();
}
public static void main(String[] args) {
ListTest lt =new ListTest();
lt.testAdd();
}
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Type mismatch: cannot convert from ArrayList to ListTest
The method add(Course) is undefined for the type ListTest
The method get(int) is undefined for the type ListTest
at collection.ListTest.<init>(ListTest.java:9)
at collection.ListTest.main(ListTest.java:22)