Herb Schildt in his books Java A Beginner's Guide and Java:The Complete Reference shows the main method as being
public static void main (String args[]).
At first I thought it must be a typo until I realized it was the same in both books. I tried it in the Command Prompt and javac ran it. I have always seen the main method printed as
public static void main(Strings[] args)
In Schildt's version the square braces comes after args, but, every where else it is always put after String. While Schildt's version runs fine in the Command Prompt, it comes back as an error in the various IDEs I've used (NetBeans, Eclipse). Why the difference? While I assume that the braces after String is the preferred method, since javac runs it and since Schildt keeps printing the other version I can't help but wonder what the difference between the two is. Anyone know?