Previous | Next | Trail Map | Writing Java Programs | Setting Program Attributes


The Space Character Separates Command Line Arguments

The Java runtime 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 | Setting Program Attributes