- 博客(1)
- 收藏
- 关注
原创 先写一个数组转换成集合
数组转换为集合,数组的工具类提供了一个静态方法:asList可以将一个数组转换为一个List集合 package collection; public class CollectionToListDemo2{ String [] arry ={“one “,”two ”,”threes”,”four”}; System.out.println(“Array:”+Arrays .toString(array) ); List list =Arrays.asList (array ); System.out.p
2020-08-08 17:55:19 156
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人