public void clear(){
  reset();
  instructions.clear();
  labels.clear();
  code=null;
  lineNumbers.clear();
}

public void clear ( ) { reset ( ) ; instructions . clear ( ) ; labels . clear ( ) ; code = null ; lineNumbers . clear ( ) ; }
hard reset the machine state .
