摘要: 空字符串分割后长度为1,分割后的数组判断不为空 背景 一次开发中,使用,对空字符串""进行分割,得到的数字长度为1,且不为空 验证 代码如下 public static void main(String[] args) throws ParseException { try { String fan 阅读全文
posted @ 2021-06-28 17:22 话·醉月 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 背景 在开发活动中,,记日志是一个很常见的操作, 记日志经常涉及到拼接字符串,这时我们就可以使用到占位符表示要拼接的字符串 方法 使用方法如下 public static void main(String[] args) { List<String> actualHpList = new Linke 阅读全文
posted @ 2021-06-28 16:53 话·醉月 阅读(1412) 评论(0) 推荐(0) 编辑