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