首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
对牌专题
利用HashMap、List、Set等数组实现模拟斗地主洗牌和发牌并对牌进行排序
每个步骤都有写注释,那就直接上代码吧。 public class Test3 {public static void main(String[] args) {//声明字符数组String[] num = {"3","4","5","6","7","8","9","10","J","Q","K","A","2"};String[] color = {"♠", "♥", "♦", "♣"};//创
阅读更多...