有扑克牌小游戏的源代码吗?
public int compareTo(PokerCard arg0) {
// TODO Auto-generated method stub
if(comparePoint(point, arg0.point) == 0)
return comparePoint(color, arg0.color);
return comparePoint(point, arg0.point);
}
想问下为什么两个点数相等为什么还要调用comparePoint(color, arg0.color);
不应该是compareColor(color, arg0.color); 吗?
http://www.imooc.com/opus/resource?opus_id=3402