标签:add hang san foreach name pre mes str code
List<String> names = new ArrayList<>(); names.add("zhangsan"); names.add("lisi"); names.forEach(name-> System.out.println(name)); names.forEach(System.out::println);
标签:add hang san foreach name pre mes str code
原文地址:https://www.cnblogs.com/zhangshiwen/p/9013385.html