Lab 9 – Counter

 

Design and implement an application that reads (from a user) an arbitrary number of integers (up to 20) that are in the range 0 to 50 inclusive and counts how many occurrences of each are entered. After all input has been processed, print all the values (with the number of occurrences) that were entered one or more times. You may use either an array or the ArrayList class for this assignment.