how to get individual digits of a long in java code example
Example: how to store a 6 digit number as 6 separate integers
int number; // = some int
while (number > 0) {
print( number % 10);
number = number / 10;
}
int number; // = some int
while (number > 0) {
print( number % 10);
number = number / 10;
}