摘要: 转换数组为List 1.使用Stream中的Collector收集器,代码: String[] arrays = new String[]{"a", "b", "c"}; List<String> listStrings = Stream.of(arrays).collect(Collectors. 阅读全文
posted @ 2020-12-04 15:41 Samuel-Leung 阅读(7096) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/qq_35393869/article/details/88895953 阅读全文
posted @ 2020-12-04 10:01 Samuel-Leung 阅读(1425) 评论(0) 推荐(0)