The code posted by make me rain works as desired. The only thing I want to change this time is to add a new thing to the original code.
When I introduce N number of values, the code sort the arraylist in descending order and it's updated each time a new element is added to the arraylist. At the moment I want only add a piece of code that shows how many times the number has appeared.
I thought it was something like....
Code:
 Array_List.Item(4)
and the program shows how many times the number "4" has appeared. But it seems that I'm doing it in the wrong way.