public void checkNumberArgs(int argNum) throws WrongNumberArgsException {
  if ((argNum < 1) || (argNum > 2))   reportWrongNumberArgs();
}

public void checkNumberArgs ( int argNum ) throws WrongNumberArgsException { if ( ( argNum < 1 ) || ( argNum > 2 ) ) reportWrongNumberArgs ( ) ; }
overide the superclass method to allow one or two arguments .
