上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 58 下一页
摘要: /** * @desc: 希尔排序 * @author: 毛会懂 * @create: 2020-12-23 14:21:00 **/ public class Shell { public static void sort(Comparable[] arr){ int n = arr.length 阅读全文
posted @ 2020-12-23 16:40 毛会懂 阅读(86) 评论(0) 推荐(0)
摘要: /** * @desc:冒泡排序 * @author: 毛会懂 * @create: 2020-12-23 11:39:00 **/ public class Bubbling { public static void sort(Comparable[] arr){ for(int i = arr. 阅读全文
posted @ 2020-12-23 16:33 毛会懂 阅读(114) 评论(0) 推荐(0)
摘要: /** * @desc: 选择排序 * @author: 毛会懂 * @create: 2020-12-23 13:52:00 **/ public class Selection { public static void sort(Comparable[] arr){ for(int i = 0; 阅读全文
posted @ 2020-12-23 16:24 毛会懂 阅读(103) 评论(0) 推荐(0)
摘要: /** * @desc: 插入排序 * @author: 毛会懂 * @create: 2020-12-23 13:25:00 **/ public class Insertion { public static void sort(Comparable[] arr){ for(int i = 1; 阅读全文
posted @ 2020-12-23 16:16 毛会懂 阅读(134) 评论(0) 推荐(0)
摘要: (1)、 浏览器提交两次请求的问题 今天接到一个BUG,该功能是登陆错误的次数限制。在用户登陆错误后,会提示用户还可以输错X次,但是现在发现每次提示都不是递减的,而是减2.后来调试发现是由于表单提交了两次,所以导致程序的次数会每次减2.OK,问题找到了,那么为什么会出现这个问题呢,后来在网上查资料, 阅读全文
posted @ 2020-12-09 16:33 毛会懂 阅读(1187) 评论(0) 推荐(0)
摘要: 通过com.fastxml.jackson的ObjectMapper对象进行转换: ObjectMapper objectMapper = new ObjectMapper(); objectMapper.convertValue(Object fromValue, Class<T> toValue 阅读全文
posted @ 2020-12-07 13:40 毛会懂 阅读(12005) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/weixin_44026997/article/details/108451809 阅读全文
posted @ 2020-12-03 10:38 毛会懂 阅读(427) 评论(0) 推荐(0)
摘要: 1、利用stream对数据进行分组并求和 public static void main(String[] args) { List<String> items = Arrays.asList("apple", "apple", "banana", "apple", "orange", "banan 阅读全文
posted @ 2020-12-02 15:09 毛会懂 阅读(24364) 评论(3) 推荐(1)
摘要: public static void main(String ... args) { LocalDateTime localDateTime = LocalDateTime.now();//localDateTime转字符串 String str = DateTimeFormatter.ofPatt 阅读全文
posted @ 2020-12-02 11:45 毛会懂 阅读(2119) 评论(0) 推荐(0)
摘要: map和flatmap的区别 map只是一维 1对1 的映射 而flatmap可以将一个2维的集合映射成一个一维,相当于他映射的深度比map深了一层 , 所以名称上就把map加了个flat 叫flatmap flatMap的用法和含义住要通过一个案例来讲解, 案例:对给定单词列表 ["Hello", 阅读全文
posted @ 2020-12-02 11:05 毛会懂 阅读(623) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 58 下一页