Exercises
1.1.1 Write a program that prints the Hello, World message 10 times.
1.1.2 Describe what happens if you omit the following in HelloWorld.java:
public
static
void
args
1.1.3 Describe what happens if you misspell (by, say, omitting the second letter) the following in HelloWorld.java:
public
static
void
args
1.1.4 Describe what happens if you put the double quotes in the print statement of HelloWorld.java on different lines, as in this code fragment:
System.out.println("Hello, World");
1.1.5 Describe what happens if you try to execute UseArgument with each of the following command lines:
java UseArgument java
java UseArgument @!&^%
java UseArgument 1234
java UseArgument.java Bob
java UseArgument Alice Bob
1.1.6 Modify UseArgument.java to make a program UseThree.java that takes three names as command-line arguments and prints a proper sentence with the names in the reverse of the order given, so that, for example, java UseThree Alice Bob Carol prints Hi Carol, Bob, and Alice.