摘要: 字符串工具类 一、字符串非空校验(传参个数不固定) 点击查看代码 public static boolean validateStrings(String... strings) { if (strings == null) { return false; } for (int i = 0; i < 阅读全文
posted @ 2024-12-02 08:29 skystrivegao 阅读(11) 评论(0) 推荐(0)
摘要: 日期工具类 一、根据出生年月日获取到年龄 public static int getAgeByBirth(String birthDateString) { int age = 0; try { DateTimeFormatter birthDateFormatter = DateTimeForma 阅读全文
posted @ 2024-12-02 08:29 skystrivegao 阅读(82) 评论(0) 推荐(0)