Reverse number logic using integer :
public static int reverseNumber(int
i)
{
int
temp = 0;
while (i >
10)
{
int
num = i % 10;
temp = (temp * 10) + num;
i = i / 10;
}
temp = (temp * 10) + i;
return
temp;
}