摘要: 写在前面:参考https://www.cnblogs.com/alter888/p/9140732.html final Base64.Decoder decoder = Base64.getDecoder();final Base64.Encoder encoder = Base64.getEnc 阅读全文
posted @ 2020-09-24 14:19 爱好编程的王能能 阅读(337) 评论(0) 推荐(0) 编辑
摘要: public static int GetHanNumFromString(String str) { int count = 0; String regEx = "[\\u4e00-\\u9fa5]"; Pattern p = Pattern.compile(regEx);//① Matcher 阅读全文
posted @ 2020-09-24 14:12 爱好编程的王能能 阅读(589) 评论(0) 推荐(0) 编辑
摘要: //返回bool类型,为空返回truepublic static boolean isEmpty(String name) { if (name == null || "".equals(name.trim()) || "null".contentEquals(name)) { return tru 阅读全文
posted @ 2020-09-24 14:04 爱好编程的王能能 阅读(788) 评论(0) 推荐(0) 编辑