🚒6. find smallest person
Person smallerPerson = characters.stream()
.min(Comparator.comparingInt(Person::getHeight)).get();
Last updated
Was this helpful?
Person smallerPerson = characters.stream()
.min(Comparator.comparingInt(Person::getHeight)).get();
Last updated
Was this helpful?