public void load(Entity unit) throws IllegalArgumentException {
  if (!canLoad(unit)) {
    throw new IllegalArgumentException("Can not load " + unit.getShortName() + " into this bay.");
  }
  currentSpace-=1;
  troops.addElement(unit.getId());
}

public void load ( Entity unit ) throws IllegalArgumentException { if ( ! canLoad ( unit ) ) { throw new IllegalArgumentException ( "Can not load " + unit . getShortName ( ) + " into this bay." ) ; } currentSpace -= 1 ; troops . addElement ( unit . getId ( ) ) ; }
load the given unit .
