摘要: delete()方法和deleteCharAt()方法 delete()方法和deleteCharAt()方法都是用来删除StringBuilder字符串指定字符索引的方法,其中 delete(int a,int b)方法:包含两个参数,使用时删除索引从a到b(包括a不包括b)的所有字符; dele 阅读全文
posted @ 2022-11-10 15:21 酷盖的小机灵 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1、用JAVA自带的函数 1 public static boolean isNumeric(String str) { 2 for (int i = 0; i < str.length(); i++) { 3 System.out.println(str.charAt(i)); 4 if (!Ch 阅读全文
posted @ 2022-11-10 15:13 酷盖的小机灵 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1 private void queryStartDateAndEndDateByDateLimit(String dateLimit, QueryTaskLogStartDateDTO queryTaskLogStartDateDTO) { 2 Integer year = Integer.par 阅读全文
posted @ 2022-11-10 15:07 酷盖的小机灵 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 排序查询 1 Map<String, Object> conditions = new HashMap<>(); 2 conditions.put("delFlag", false); 3 conditions.put("sortColumns", " code desc");//排序要用数据库字段 阅读全文
posted @ 2022-11-10 08:58 酷盖的小机灵 阅读(16) 评论(0) 推荐(0) 编辑