Skip to content

Hello Again

Say Hello to an Argument

Modify the 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 source file:

$ javac

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.