this is the code I am dealing with
public class NameTag
{
public static void main (String[] args)
{
System.out.println ();
System.out.println (" " + args[0]);
System.out.println ("My name is " + args[1]);
System.out.println ();
}
}
this is the error that keeps showing each time I try to run the program java.lang.ArrayIndexOutOfBoundsException: 0 at NameTag.main(NameTag.java:6)
I am using BlueJ Version 3.1.0 *I have no idea how to fix this error, I have tried many different things but nothing is working. Please help.*
argsarray is and are you doing what needs to be done to fill it when you run the program?