I am currently trying to figure out a way to create a number checker and one of the steps involves splitting up a number into it's separate digits. Here is an example of what I'm trying to do:
given the number 56197245 take every other digit starting with the 5 on the left and double it. So that would give you 10, 2, 14, 8. You then have to add up all the digits involved so you would have 1+0+2+1+4+8.
You can do a few things, one is to turn it to a String, and use the string to extract each individual number, or you can use % and / to split the number up.