Hello, dividing by 10 and getting the remainder and division result we can have the Right most digits. Then multiply Rigth most digits with 1000s, 100s and 10s. You can have the number in reverse manner. Bin

Originally posted by yash bhatnagar: i have to flip a integer value say if i have 1234 i want to flip it so that it becomes 4321 can any body help mein that.

Simple solution would be to convert int to a String, reverse the String and convert it back to an integer using Integer.parseInt. HTH, - Manish