Basically the Scanner class is used to take user input from the console.

The integer values are then stored into an Array. Then some stuff happens in a series of 'for' loops with the results...