This content has been marked as final. Show 3 replies
The error message is telling you exactly what's wrong.
At line 29 of SumDigits.java, you're trying to access the first element of an array (at index 0) but that array has no elements--that is, its length is 0.
For instance, an array of length 3 has indices 0, 1, and 2. Trying to access any other index will give ArrayIndexOutOfBoundsException.