进阶day04-Map集合的基本使用

This commit is contained in:
2026-02-01 16:59:16 +08:00
parent 89a00fa48f
commit 221c96844b
2 changed files with 63 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ public class Test16 {
for (String num : nums) {
for (String color : colors) {
String content = color + num;
//将扑克牌,由小到大组合好,并设置对应的大小标记,用于排序
pokers.add(new Poker(content,index++));
}
}