菜鸟问题,请多多捧场!
public class InputTest
{
public static void main(String[] args)
{
args[0] = "world!";
System.out.println( "hello "+args[0] );
}
}
编译正确,为什么执行出如下的错误?请多多指教!
java.lang.ArrayIndexOutOfBoundsException: 0
at InputTest.main(InputTest.java:8)
Exception in thread "main"