1、stream简单运用
List<String> list = Arrays.asList("hello", "wworld", "aaaa");
// list.forEach(str -> System.out.println(str.toUpperCase()));
List<String> resultList = new ArrayList<>();
// list.forEach(item -> resultList.add(item.toUpperCase()));
// resultList.forEach(System.out::println);
// list.stream().map(item -> item.toUpperCase()).forEach(System.out::println);
list.stream().map(String::toUpperCase).forEach(System.out::println);