I know how to get the input for the array and store and then display the numbers
ID: 3674761 • Letter: I
Question
I know how to get the input for the array and store and then display the numbers, but I can't figure out how to display how many times each number was called. Java. Write a program that reads an arbitrary number of integer that are in the range 0 - 50 inclusive and counts how many occurrences of each are entered. Indicate the end of the input by a value outside of the range. After all input has been processed, print all of the values (with the number of occurences) that were entered one or more timesJ