為什么這樣不對(duì)?
package job;
public class Myjob {
public static void main(String [] args) {
String[] subjects = {oracle,php,linux,java,html};
System.out.println(subjects[3]);
}
}
package job;
public class Myjob {
public static void main(String [] args) {
String[] subjects = {oracle,php,linux,java,html};
System.out.println(subjects[3]);
}
}
2018-07-22
舉報(bào)
2018-07-31
要加雙引號(hào)
2018-07-22
數(shù)組的元素類型是字符串,每個(gè)元素都需要用雙引號(hào)。