java累加求和_Java lambda 循环累加求和
java 8 stream 提供了下面几种类型的求和Stream::mapToIntStream::mapToDoubleStream::mapToLongpublic void test() {List people = new ArrayList<>();people.add(new Person("zhangsan",20));people.add(new Person("lis...