Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

split number java

int num = 5542;
String number = String.valueOf(num);
for(int i = 0; i < number.length(); i++) {
    int j = Character.digit(number.charAt(i), 10);
    System.out.println("digit: " + j);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #number #java
ADD COMMENT
Topic
Name
3+4 =