⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arraylistmethod.java

📁 洗牌游戏
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package Shuffle;import java.util.ArrayList;/** * * @author DJ尐舞 */public class ArrayListMethod {    public static void show(){        ArrayList<Integer> arraylist=new ArrayList<Integer>();        for(Integer i=0;i<52;i++){            arraylist.add(i);        }        while(!arraylist.isEmpty()){            Integer card=arraylist.get((int)(Math.random()*arraylist.size()));            System.out.print(card+" ");            arraylist.remove(card);        }        }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -