登录后复制 List<Integer> res = new ArrayList<>(); int[] arr = res.stream().mapToInt(i -> i).toArray() 1.2. 原创作者: thinklili 转载于: https://blog.51cto.com/thinklili/11816713