求解求解求解
coursesToSelect1.addAll(2, Arrays.asList(course2));
asList ?顯示這個The method asList(Course[]) is undefined for the type String
該怎么解決
coursesToSelect1.addAll(2, Arrays.asList(course2));
asList ?顯示這個The method asList(Course[]) is undefined for the type String
該怎么解決
2015-09-25
舉報
2016-01-23
The method asList(Course[]) is undefined for the type String.
1、檢查是否導進包:import java.util.Arrays;
2、Arrays.asList(collection c),檢查你的course2是否為數組集合類型
2015-10-11
我沒看見代碼,我想是因為你沒有建立course2這個數組。在你這行代碼前加上:
希望能夠幫到您!