上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页
摘要: sql主要用做加法,减法和乘除用java 阅读全文
posted @ 2022-01-16 11:06 northli 阅读(73) 评论(0) 推荐(0) 编辑
摘要: double f = 111231.5585;System.out.println(String.format("%.2f", f)) 阅读全文
posted @ 2022-01-15 23:20 northli 阅读(22) 评论(0) 推荐(0) 编辑
摘要: List<String> list1 = new ArrayList<String>();list1.add("aaa");list1.add("bbb");list1.add("ccc");List<String> list2 = new ArrayList<String>();list2.add 阅读全文
posted @ 2022-01-15 23:08 northli 阅读(4170) 评论(0) 推荐(0) 编辑
摘要: 两个递归,对统一个list进行操作,会造成并发bug 阅读全文
posted @ 2022-01-15 18:19 northli 阅读(31) 评论(0) 推荐(0) 编辑
摘要: mybatis 查询参数为1000,查询效率可以接受, 超过10000,查询效率就比较慢 阅读全文
posted @ 2022-01-14 23:38 northli 阅读(397) 评论(1) 推荐(0) 编辑
摘要: 通过iterator删除 String code_first = "123"; Iterator iterator = list.iterator();while(iterator.hasNext()){ TMP tmp = (TMP) iterator.next(); if(tmp.getCode 阅读全文
posted @ 2022-01-14 19:12 northli 阅读(368) 评论(0) 推荐(0) 编辑
摘要: String str1 = "270026";String str2 = "270001";System.out.println(str1.compareTo(str2)<0?str1:str2); 阅读全文
posted @ 2022-01-14 19:08 northli 阅读(84) 评论(0) 推荐(0) 编辑
摘要: File > Project Structure > Modules > Dependencies > “+” > “JARs or directories...” 阅读全文
posted @ 2022-01-14 12:13 northli 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 使用apache的CollectionUtils工具类 String[] arrayA = new String[] { "1", "2", "3", "4"}; String[] arrayB = new String[] { "3", "4", "5", "6" }; List<String> 阅读全文
posted @ 2022-01-14 12:10 northli 阅读(608) 评论(0) 推荐(0) 编辑
摘要: java.util.ConcurrentModificationException 错误,通过内部类的成员变量来解决,本质是新建一个类对象,根本的数组的复制除了问题通过new对象获取内部类的属性或者方法,通过内部类变量可以解决public class Test2 { public static vo 阅读全文
posted @ 2022-01-13 19:34 northli 阅读(28) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页