import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int[] Myarray = new int[10];
// 注意 hasNext 和 hasNextLine 的区别
for(int i=0;i<=8;i++){
int b = a%10;
Myarray[8-i] = b;
a /= 10;
}
for(int i=0;i<=8;i++){
System.out.printf("%d",Myarray[i]);
}
}
}
存数组后进行缓冲

京公网安备 11010502036488号