public boolean equals(Object obj){
if(!(obj instanceof Team)){
Team toCompare=(Team) obj;
return (this.Team.equals(toCompare.
}
else{
return false;
}
}
Team a= new Team();
Team b= new Team();
When I run my program, it produces false all the time.
I need to check these two teams equality, how do I do it?
Get Free Quote!
432 Experts Online