List <Integer> numbers = Arrays.asList(1, 3, 5, 7);. numbers.stream() .map(i -> i * 2) .forEach(System.out::println); //output 2 6 10 14.
確定! 回上一頁