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;
)
回複:求教: 關於java, 真是不太明白
所有跟帖:
• This is a good one, last is 亂彈 -Java鑒定家- ♀ (0 bytes) () 03/23/2005 postreply 09:06:26