Hello Again¶
Say Hello to an Argument¶
Modify the Hello.java code and append the first command-line argument to your
greeting using String concatenation (basically, using the + sign).
Array Access
Arrays start at 0 and are accessed via the square bracket syntax, e.g.,
the first String in the command-line arguments would be: args[0]
Save, then recompile the Hello.java source file:
$ javac Hello.java
and run it again, passing your name:
$ java Hello Ted
Hello Again, Ted
Once you've completed the above steps, check in with the instructor to review your code.
Once you've completed the above steps, check in with the instructor to review your code.