摘要: import org.junit.Test; public class testThread { @Test public void testThreads() throws Exception { Thread add = new AddThread(); Thread dec = new Dec 阅读全文
posted @ 2023-03-15 14:42 给香菜送点香菜 阅读(26) 评论(0) 推荐(0)
摘要: synchronized 实现 que import lombok.SneakyThrows; import lombok.var; import org.junit.Test; import java.util.ArrayList; import java.util.LinkedList; imp 阅读全文
posted @ 2023-03-15 14:42 给香菜送点香菜 阅读(23) 评论(0) 推荐(0)
摘要: 旧API Date和Calendar 使用SimpleDateFormat格式化 新API LocalDateTime和ZonedDateTime 使用DateTimeFormatter格式化 Date date = new Date(); System.out.println(date); Sim 阅读全文
posted @ 2023-03-15 11:56 给香菜送点香菜 阅读(21) 评论(0) 推荐(0)
摘要: 单个字符的匹配规则如下: 正则表达式规则可以匹配 A 指定字符 A \u548c 指定Unicode字符 和 . 任意字符 a,b,&,0 \d 数字0~9 0~9 \w 大小写字母,数字和下划线 a~z,A~Z,0~9,_ \s 空格、Tab键 空格,Tab \D 非数字 a,A,&,_,…… \ 阅读全文
posted @ 2023-03-15 11:07 给香菜送点香菜 阅读(44) 评论(0) 推荐(0)