QAD interview question

Write a code to reverse a number in Java