Write a program that reads the integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0.
Breaking it down
Collecting numbers from a user and adding them to an ArrayList will allow us to use java 8 Collectors.counting() a group by technique. Finally printing out the stream will show the number entered and the number of times it was inputted.