ciaranarcher / coderpad-ages

CoderPad - Ages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analyze Ages from JSON file

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

About

CoderPad - Ages


Languages

Language:Java 100.0%