回复:求教: 关于java, 真是不太明白
public boolean equals(Name otherName)
{
if(!(this.getFirst().equalsIgnoreCase(otherName.getFirst())))
return false;
if(!(this.getMiddle().equalsIgnoreCase(otherName.getMiddle())))
return false;
if(!(this.getLast().equalsIgnoreCase(otherName.getLast())))
return false;
return true;
)