後知後覺1
2016-10-05 10:47
有扑克牌小游戏的源代码吗?
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
Java入门第三季
409792 学习 · 4340 问题
相似问题