## Code solution for question

**How to: java int to int array **

```
int number = 110101;
String temp = Integer.toString(number);
int[] numbers = new int[temp.length()];
for (int i = 0; i < temp.length(); i++) {
numbers[i] = temp.charAt(i) - '0';
}
```

Another solution: how to convert int into int array of digits 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';
}
```

You can **copy the solution** for question: how to convert int into int array of digits in java, look at a few solutions of other members of the community or add your own solution, question.