Scramble each digit of the int a and print out the biggest possible integer
问题 I’m stuck here. Do I just keep making new strings and turn them to int or us there a faster better way? public void biggest(int a){ int random; String aS = String.valueOf(a); int ah=9; if (a<10) System.out.println(a); for(int i= 0;i<aS.length();i++){ String firstNum = aS.substring(i,i+1); for (int j = ah; j > Integer.parseInt(firstNum); j--){ System.out.println(ah); } } } ``` 回答1: There's no need to use conversion to String in this case, you can get the digits from the input number by getting