public boolean add(Object o){
  if (!list.contains(o)) {
    list.add(o);
    return true;
  }
  return false;
}

public boolean add ( Object o ) { if ( ! list . contains ( o ) ) { list . add ( o ) ; return true ; } return false ; }
adds the specified element to this set if it is not already present ( optional operation ) .
