Java version of this CoderPad question: https://app.coderpad.io/dashboard/questions#185003
Two verisons included, one using the streams API, and another using a simple file scanner.
Run ./gradlew run
to execute.
Sample output:
> Task :run
Calculated via streams:
Youngest person: Jonnie Corr (3 years)
Oldest person: Theresa Coletti (99 years)
Average Age: 44.48 years
Duration (ms):60
Calculated via scanner:
Youngest person: Jonnie Corr (3 years)
Oldest person: Theresa Coletti (99 years)
Average Age: 44.48 years
Duration (ms):13