//BigDecimal: BigDecimal bb =list.stream().map(Plan::getAmount).reduce(BigDecimal.ZERO,BigDecimal::add); //int、double、long: double max = list.stream().mapToDouble(User::getHeight).sum();