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