為什么先判斷 this.name==null ? 不能先判斷 obj.name==null 嗎?
if(this.name==null)?{
if(ob.name==null)
return?true;
else
return?false;
}else?{
if(this.name.equals(ob.name))
return?true;
else
return?false;
}if(this.name==null)?{
if(ob.name==null)
return?true;
else
return?false;
}else?{
if(this.name.equals(ob.name))
return?true;
else
return?false;
}2019-05-14
舉報
2019-06-26
沒什么區別啊,可以寫下運行,發現結果還是true
2019-06-10