There is an int value between 0 and MAX_VALUE. From this value (whatever it may be), you need to get each digit and output in the string format.
String.valueOf (val) - helps me to get any value in the String format, but how can I get not the whole number but separately, each subsequent digit?