为什么有这个报错
public class demo04{
public static void main(String[] args) {
String[] subjects =new String[1];
subjects[0]="wangjia";
subjects[1]="jinling";
System.out.println("输出的分数为"+subjects[1]);
}
}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at HelloWorld.main(HelloWorld.java:5)