📜  java int 到 int 数组 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.943000             🧑  作者: Mango

代码示例2
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';
}