Person maxMassPerson = characters .stream() .max(Comparator.comparingInt(Person::getMass)) .get();
Last updated 2 years ago
Was this helpful?