03 2023 档案

摘要: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 给香菜送点香菜 阅读(17) 评论(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 给香菜送点香菜 阅读(13) 评论(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 给香菜送点香菜 阅读(17) 评论(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 给香菜送点香菜 阅读(23) 评论(0) 推荐(0) 编辑
摘要:为了很久之后能快速回顾GO的写法 特意记录一下 1: go可以隐式声明 := (可以不跟类型) 类似 var 变量名 变量类型 变量名:=变量值(声明时go会自动判断类型,和PHP很像) 变量名:=变量类型 2:go里面的 interface (接口)类型 可以作为函数参数接收任何其他类型 ,也可以 阅读全文
posted @ 2023-03-01 10:30 给香菜送点香菜 阅读(62) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示