public class Example1 {
public static void main (String args[]){
int x ;
x= Integer.parseInt(args[0]);
if(x<60){
System.out.println("您的成绩是:"+x);
System.out.println("还需继续努力!");
}
if(x>90){
System.out.println("您的成绩是:"+x);
System.out.println("成绩优异,继续努力!");
}
}
}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at Example1.main(Example1.java:4)
说是数组越界,求教这个该怎么弄 |