Applied Java: Streams

Exercise: Find Min Student Age

You want to know an age of the youngest student from a list of Students that you choose.

Use Java Streams to implement findMinAge method.

First solution: Use a Lambda expression as a comparator on the student objects in the stream Can throw NoSuchElementException from get
Second solution: Map stream of students to a stream of integers and find the min in this stream Can throw NoSuchElementException from getAsInt
Third solution: Use built in Comparator method Can throw NoSuchElementException from get