java
wh0am1·
这个人超级懒,什么都不写的!
展开
-
fastjson1.2.83反序列化漏洞
【代码】fastjson1.2.83反序列化漏洞。原创 2023-07-13 10:13:21 · 6899 阅读 · 0 评论 -
java常用的list转换
记录一下 int[] data = {4, 5, 3, 6, 2, 5, 1}; // int[] 转 List<Integer> List<Integer> list1 = Arrays.stream(data).boxed().collect(Collectors.toList()); // Arrays.stream(arr) 可以替换成IntStream.of(arr)。原创 2022-02-13 15:26:47 · 2840 阅读 · 0 评论 -
数组与list的转换
数组转list 常用分为int[]类型,String[]类型和Integer[]类型int[] arr 数组转 listList listRes = Arrays.stream(arr).boxed().collect(Collectors.toList());String[] strs 转 listList listRes = Arrays.asList(strs);Integer[] 转ListList listRes = Arrays.asList(integerRes);list 转原创 2022-02-04 12:05:00 · 1683 阅读 · 0 评论