List<Integer> list = new ArrayList<Integer>();
int[] array = list.stream().mapToInt(i->i).toArray();
Integer[] cannot be converted to int[]
最新推荐文章于 2023-04-01 19:26:19 发布
List<Integer> list = new ArrayList<Integer>();
int[] array = list.stream().mapToInt(i->i).toArray();