-, , (- 1, (0)), , ArrayIndexOutOfBoundsException. 20 , 0 19.... 0 999. 1000 num.length, , ....
, 10 ", , i 10 0. ... ... , , , 0 10, 1 [(0/10) - 1]? k , , ArrayIndexOutOfBoundsException.
, , , , 10, , 20, , 30.... , 100. (... < =...). if .
:
, totals2(). " ".