Count occurrence of numbers in a array java

preview_player
Показать описание
Write a program that reads the integers between 1 and 100 and counts the occurrence of each. Assume the input ends with 0.
source code:
Рекомендации по теме
Комментарии
Автор

this is completely wrong. look at your output how did you get 10 in there? why 1 does not appear in there?

mamadousouaiboudiallo
Автор

what if we have values between [-20 to 40] ???

reiinarzinyday
Автор

you didnt get the question right the array doesnt take 100 values the values are between 1-100

cellsentinel
Автор

i wonder what you guys are using, its not working for me. :(

lisaswarn