23 % 10 = 3
23 / 10 = 2
Type: Posts; User: Norm
23 % 10 = 3
23 / 10 = 2
This has nothing to do with java. Its basic math
The number 123 is 1 * 10^2 + 2 * 10^1 + 3 * 10^0
The programming part would Use the % and / operators to do the work
Strip off each power of 10 and store that value in the array
Given 123 the array would be {1,2,3}
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and...