I'm trying to create an application that reads an arbitrary number of integers that are in the range 0 to 50 and counts how many occurrences of each are entered. At the end of the input processing, I have to print all of the values (including number of occurrences) that were used one or more times.
So far I've set up the scanner, and I had originally thought to use a number of scan.nextInt() in order to calculate each and every one, but I simply can't develop the right counters and link the concepts. Any help would be greatly appreciated!
So far I've set up the scanner, and I had originally thought to use a number of scan.nextInt() in order to calculate each and every one, but I simply can't develop the right counters and link the concepts. Any help would be greatly appreciated!
Comment