public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj instanceof Group == false) {
    return false;
  }
  Group another=(Group)obj;
  return group.equals(another.toString());
}

public boolean equals ( Object obj ) { if ( this == obj ) { return true ; } if ( obj instanceof Group == false ) { return false ; } Group another = ( Group ) obj ; return group . equals ( another . toString ( ) ) ; }
this function returns true if the group passed matches the group represented in this interface .
