🛴5. find max mass person
Person maxMassPerson = characters
.stream()
.max(Comparator.comparingInt(Person::getMass))
.get();
Last updated
Was this helpful?
Person maxMassPerson = characters
.stream()
.max(Comparator.comparingInt(Person::getMass))
.get();
Last updated
Was this helpful?