摘要:
方案一:借助Set的特性进行去重 /** * 去除重复数据 * 由于Set的无序性,不会保持原来顺序 * @param list */ public static List<String> list distinct(List<String> list) { final boolean sta = 阅读全文
摘要:
//对字符串数字排序Stream.of("123", "321", "132","312").sorted(Comparator.comparingInt(Integer::parseInt))// 对Object属性排序Stream.of( new Exception("13"), new Exc 阅读全文