Cepheid interview question

They asked how to reverse a number given an integer (preferably in Java)