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