Lecture 17
20
Creating a ShellCommand object
•MkdirCommand extends ShellCommand (18)
•Constructor (24)
–super invokes ShellCommand constructor, telling it help string and argument string for mkdir
•implement abstract method doIt (37)
–next token on line is the name of the Directory to be made
–tell Directory constructor the name, owner, parent
–Directory constructor adds the new Directory to the parent
–public void doIt( StringTokenizer args, Shell sh )
–{
–  String filename = args.nextToken();
–  new Directory(filename, sh.getUser(), sh.getDot());
–}