Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 474 Bytes

File metadata and controls

12 lines (10 loc) · 474 Bytes

这是lambda的一些学习demo 因为在工作中使用到的挺多的,所以打算再继续系统的学习一下吧

List<String> list = new ArrayList<String>();
		list.add("I am a boy");
		list.add("I love the girl");
		list.add("But the girl loves another girl");
		List<String> copy = list.stream().map(e -> e.split(" ")).flatMap(Arrays::stream).distinct().collect(Collectors.toList());

接下来老子就试试dev开发之后merge到master 再次测试