📅  最后修改于: 2022-03-11 14:52:23.609000             🧑  作者: Mango
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';
}