跟著敲 為啥會(huì)報(bào)錯(cuò)呢
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)
2022-03-25
具體要看你寫的CSS,有可能你的body上面被div覆蓋了請(qǐng)問有素材圖片嗎
2019-01-26
初始化方法錯(cuò)了。
2019-01-26