java program to reverse a number