public boolean equals(Object obj){
  if (obj instanceof MSort) {
    MSort ms=(MSort)obj;
    if (data == ms.data)     return true;
  }
  return false;
}

public boolean equals ( Object obj ) { if ( obj instanceof MSort ) { MSort ms = ( MSort ) obj ; if ( data == ms . data ) return true ; } return false ; }
equal ( based on data , ignores index )
