Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

change number into array in java

String temp = Integer.toString(guess);
int[] newGuess = new int[temp.length()];
for (int i = 0; i < temp.length(); i++)
{
    newGuess[i] = temp.charAt(i) - '0';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #number #array #java
ADD COMMENT
Topic
Name
9+2 =