數組中string 無法解析為類型 這是怎么回事
public class w2如何使用java的數組 { public static void main(String[] args) { String ] subjects = new string[5] ?; subjects[0] = "Oracle"; subjects[1] = "PHP";//省略后四個 System.out.println("數組中第4個科目是:"+subjects[3]); }} Exception in thread "main" java.lang.Error: 無法解析的編譯問題: string 無法解析為類型 ? 這是怎么回事
2017-11-22
?String [] subjects = new String[5]
2017-10-22
String 要大寫S,否則編譯環境會認不出來的
2017-10-04
Can not understanded what you said !
2017-10-04
String 大寫S
2017-10-04
你看看你String ] subjects = new string[5]? 這一句聲明是不是少了個前中括號“[”