回复 楼主 诸葛修勤
iiiiiiiiiiiiiiiiiiiiiiiiiii
public boolean equals(Object student){ if(!(student instanceof StudentMsg)){ return false; } StudentMsg tmp = (StudentMsg)student; if(this.m_id.equals(tmp.m_id) && this.m_mark == tmp.m_mark && this.m_name.equals(tmp.m_name)){ return true; }else return false; }看你的代码有一种看老手写的感觉。。。很羡慕。。。