int[] ints = {1, 2, 3};
List intList = new ArrayList();
for (int i : ints){
intList.add(i);
}
Java中int[]转换为List<Integer>
最新推荐文章于 2023-06-22 08:16:53 发布
int[] ints = {1, 2, 3};
List intList = new ArrayList();
for (int i : ints){
intList.add(i);
}