🚜2. total mass of characters
Integer totalMass = characters
.stream()
.mapToInt(Person::getMass)
.sum();
Last updated
Integer totalMass = characters
.stream()
.mapToInt(Person::getMass)
.sum();
Last updated