//1.反转一个只有3位数的整数。从控制台输入321,输出123
System.out.println("请输入三个整数进行反转;");
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int a=x%10,b=x/10%10,c=x/100;
x=a*100+b*10+c;
System.out.println("翻转后:"+x);
10-15
1523