摘要: 1、使用stream api对list集合做总数累加计算: List<Integer> profitList = new ArrayList<Integer>(); //使用java8的新特性stream api 做list元素累加,算总和 int total = profitList.stream 阅读全文
posted @ 2022-09-17 21:58 下课后我要去放牛 阅读(257) 评论(0) 推荐(0)