int i = 12343465;
int m = 0;
while (i != 0) {
m =i%10;
System.out.print(m);
i = i/10;
}
String str = "123456";
int index = str.length();
while (index != 0) {
System.out.print(str.substring(index - 1, index));
index--;
}
public static void reverseString (String str){
StringBuffer stringBuffer = new StringBuffer (str);
System.out.print(stringBuffer.reverse());
}
把你的整形变为字符串,巧颂通过reverse方法倒渣颂序输如宽郑出提交回答