java使用stream流去list里某个字段的最大值时间:2025-03-12 09:44:19 String max = ().map(Object::getNum).collect(()).stream().max((x -> x)).orElse(null);