public class UseArgument
{
public static void main(String [] args)
{
System.out.print("Hi, ");
System.out.print(args [ 0 ] );
System.out.println(". How are you?");
}
}
Hi, java.lang.ArrayIndexOutOfBoundsException: 0
at UseArgument.main(UseArgument.java:6)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:272)

New Topic/Question
Reply



MultiQuote




|