String [ ] subjects={oracle,php,linux,java,html};
最好自己去试试,字符串不用数组 是怎么赋值的
String[] subjects={"oracle","java","Linux","html"};
System.out.println(subjects[1]);
字符串需要加双引号“”,String [ ] subjects={“oracle”,“php”,“linux”,“java”,“html”};