+ 2

How to split integer number in java.

What are the various ways to split integer number into single digits in java.

16th Sep 2020, 1:24 PM
Kumar
Kumar - avatar
2 Answers
+ 4
You can either use while loop, % and // Or convert the number to String and use charAt method Check submissions to this assignment https://www.sololearn.com/learn/14303/?ref=app
16th Sep 2020, 1:30 PM
Gordon
Gordon - avatar
+ 3
Thank you @Gordon.
16th Sep 2020, 1:40 PM
Kumar
Kumar - avatar