2. Create a Java application that performs the same task created in the algorithm.

Jermy_1