class Reverse{ public static void reverseInt(int n) { int hilf=0; while(n!=0) { hilf=n%10; System.out.print(hilf); n=(n-hilf)/10; } } public static void main(String[]args) { int n= 0; reverseInt(123); }}