This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What is the signature of the main method? What are its parameters? What happens if you print the values of those parameters?
Wait a second. I think I misunderstood. I thought that the "Java Hello world that is all" was how you started the application. It is what the user enters after the application is started.
The source of your data is System.in. Now you can go two ways:
1) use a BufferedReader around an InputStreamReader around System.in; read per line, then split (hint: that's a method) the line on spaces
2) use a Scanner around System.in. Scanner has lots of methods to read data; the easiest are hasNext() and next() that read one word at a time. Note that input is only sent to Java when the user pressed enter.
But you can't get it to print "Hello" with those command-line arguments unless you have a line saying
The first token after "java" is the name of the class, the remaining tokens form the String array for the command-line arguments which we usually call "args". For a simple application like that, don't use NetBeans, and use the enhanced for (or for-each) loop.