IntSream → List<Integer>

Memo

List<Integer> list = IntStream.range(1, 13).boxed().collect(Collectors.toList());

list.stream().forEach(System.out::println);

results

1
2
3
4
5
6
7
8
9
10
11
12

================

UnaryOperator<String> stringUpperCase = (s)->s.toUpperCase();

System.out.println( stringUpperCase.apply("abc") );


results

ABC