package Poker_Swing; import javax.swing.JFrame; public class Poker{ private String color; //花色 private String brandName; //名称 public Poker(){ } public Poker(String color,String brandName){ this.color = color; this.brandName = brandName; } public String getColor() { return color; } public String getBrandName() { return brandName; } public String toString() { return color +","+ brandName ; } //重写equals方法 public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Poker other = (Poker) obj; if (brandName == null) { if (other.brandName != null) return false; } else if (!brandName.equals(other.brandName)) return false; if (color == null) { if (other.color != null) return false; } else if (!color.equals(other.color)) return false; return true; } }

微信网友_6233325343920128 LV1
2022年11月30日
huevnn LV5
2022年6月15日
Czhiyi LV6
2022年3月29日
一头土猪 LV7
2021年12月22日
Demo1111 LV30
2021年12月9日
quiyian LV4
2021年6月8日
234123141 LV7
2021年5月10日
bg12123 LV1
2021年3月25日
2458165357 LV1
2021年2月19日
qq454952101 LV4
2021年2月5日

vincemokea LV7
8月26日
lyryyyy
2024年10月22日
暂无贡献等级
lhm789 LV6
2024年9月11日
feelinfer LV1
2024年6月27日
qqqww11 LV2
2024年6月26日
azzzz1 LV2
2024年6月26日
ffffwwrgch LV1
2024年4月28日
gzcznb LV8
2024年4月1日
王少波 LV5
2024年4月1日
2890892945 LV2
2023年12月26日