1. String[] args consists of the arguments you type in at the unix prompt.
2. args.length gives the number of arguments.
For example if we type this in the unix prompt:

$ java Echo my name is Daniel
my
name
is
Daniel

Note that java Echo is not a part of the argument list.

do loops
——-
1. Executes the loop body at least once.

do{
s = keybd.readLine(); // read a line from the keyboard
process(s); // do something
}while(s.length > 0); // if size of s is 0 , then exit the loop

There might be an ambiguity as in what to do if the user enter anything in the beginning. This will cause the process method to break down and ultimately an error occurs. This can be corrected by the following code: