An example of a more complex command line application in Java. The application calculates the statistics from data read from a specified file.
To run the application, we need to specify the file name in the program arguments. For instance: -f src/main/resources/data.txt
.