int total = numbers.stream().mapToInt(i -> i.intValue()).sum(); System.out.print(total);. 2. Tags. array · java · list · sum. Related.
確定! 回上一頁