java中将数组array转为ArrayList
发布时间:2020-12-14 06:39:22 所属栏目:Java 来源:网络整理
导读:list=new ArrayList (Arrays.asList(strs))。 list=Arrays.asList(strs); integers= IntStream.of(ints).boxed().collect(Collectors.toList()); long[] longs={3,4}; ListLong longs1=LongStream.of(longs).boxed().collect(Collectors.toList()); double[]
list=new ArrayList<>(Arrays.asList(strs))。
list=Arrays.asList(strs);
|