var listOfNumbers = List.of(1,2,3,4,5,6,7,8,9,10); var sum = listOfNumbers.stream() .collect(Collectors.summingInt(Integer::intValue));.
確定! 回上一頁