Previous | Next | Trail Map | Writing Java Programs | Command Line Arguments


The Space Character Separates Command Line Arguments

The system interprets the space character as a separator for command line arguments. If you want Drink Hot Java to be interpreted as a single argument, you would join them with double quotes (which the system consumes). On UNIX, you would run it like this:
% java Echo "Drink Hot Java"
Drink Hot Java


Previous | Next | Trail Map | Writing Java Programs | Command Line Arguments