摘要:
Random random = new Random(); String s = random.nextInt(99999) + ""; // 添加一个空的字符串使随机数转变为String类型 StringBuffer buffer = new StringBuffer(); for (int i 阅读全文
摘要:
代码如下: public class Demo13 { public static void main(String[] args) { //1.创建服务,创建线程池,线程池大小10 ExecutorService service = Executors.newFixedThreadPool(10) 阅读全文