public Outfit removeOutfit(final Outfit other){
  int newDetail;
  int newHair;
  int newHead;
  int newDress;
  int newBody;
  if ((detail == null) || detail.equals(other.detail)) {
    newDetail=0;
  }
 else {
    newDetail=detail;
  }
  if ((hair == null) || hair.equals(other.hair)) {
    newHair=0;
  }
 else {
    newHair=hair;
  }
  if ((head == null) || head.equals(other.head)) {
    newHead=0;
  }
 else {
    newHead=head;
  }
  if ((dress == null) || dress.equals(other.dress)) {
    newDress=0;
  }
 else {
    newDress=dress;
  }
  if ((body == null) || body.equals(other.body)) {
    newBody=0;
  }
 else {
    newBody=body;
  }
  return new Outfit(newDetail,newHair,newHead,newDress,newBody);
}

public Outfit removeOutfit ( final Outfit other ) { int newDetail ; int newHair ; int newHead ; int newDress ; int newBody ; if ( ( detail == null ) || detail . equals ( other . detail ) ) { newDetail = 0 ; } else { newDetail = detail ; } if ( ( hair == null ) || hair . equals ( other . hair ) ) { newHair = 0 ; } else { newHair = hair ; } if ( ( head == null ) || head . equals ( other . head ) ) { newHead = 0 ; } else { newHead = head ; } if ( ( dress == null ) || dress . equals ( other . dress ) ) { newDress = 0 ; } else { newDress = dress ; } if ( ( body == null ) || body . equals ( other . body ) ) { newBody = 0 ; } else { newBody = body ; } return new Outfit ( newDetail , newHair , newHead , newDress , newBody ) ; }
gets the result that you get when you remove ( parts of ) an outfit . removes the parts in the parameter , from the current outfit . note : if a part does not match , the current outfit part will remain the same .
