I was attempting to write and complie the example code found
here I keep reciving the following error: "SpotRunTo.java:5: ';' exspected".
I'm guessing that the compiler is telling me that on line 5 it's exspecting a ';' ?
Here's a copy of the code I'm trying to compile:
public class SpotRunTo
{
public static void main( Strings[] args )
if (args.length == 0 )
{
System.out.println( "Spot is now home" );
}
else
{
System.out.println( "Spot is now in " + args[0] );
}
}
What am I missing? I've gone through this many times and I'm lost. I don't see what I'm missing. Thanks in advance for pointing me in the right direction.