Integer totalMass = characters .stream() .mapToInt(Person::getMass) .sum();
Last updated 2 years ago
Was this helpful?