i have to implement the shell such that it accepts commands, together with parameters. Assume all possible commands have either 0 or 1 parameter. I need to check this.
if(commandstrin gs.length>2) {output error message and continue to the beginning of the loop}
Note: the continue statement will skip all the following lines and go back to the beginning of the while loop.
In the skeleton, commandLine=con sole.readLine() ;...