摘要: package com.google; import javax.lang.model.element.NestingKind; import java.util.HashMap; public class IntegerDemo { public static void main(String[] 阅读全文
posted @ 2022-11-25 16:11 Sunray0330 阅读(18) 评论(0) 推荐(0) 编辑
摘要: package com.google; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; class Demo { private int i = 100; Lock lo 阅读全文
posted @ 2022-11-25 16:08 Sunray0330 阅读(10) 评论(0) 推荐(0) 编辑
摘要: @Test public void test1() { System.out.println(getRandomString(10)); } public static String getRandomString(int length) { String str = "abcdefghijklmn 阅读全文
posted @ 2022-11-25 15:54 Sunray0330 阅读(19) 评论(0) 推荐(0) 编辑
摘要: package com.google.thread3; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.ThreadM 阅读全文
posted @ 2022-11-25 15:45 Sunray0330 阅读(49) 评论(0) 推荐(0) 编辑