回複:求教: 關於java, 真是不太明白

來源: 2005-03-23 07:40:45 [舊帖] [給我悄悄話] 本文已被閱讀:

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;
)