🌈 搜索
📅  最后修改于: 2022-03-11 15:00:08.744000             🧑  作者: Mango
private double calculateAverage(List marks) { return marks.stream() .mapToDouble(d -> d) .average() .orElse(0.0) }