Welcome again
Please always put spaces between (non‑unary) operators and operands: not
for (i=0; i<N; i++) ... please but
for (i = 0; i < N; i++) ... No space in
i++ however. Don't put constants in the
for header. Write
myArray.length instead.
>
I like your counting technique, but what makes you think there will not bemore than ten different values?