Pregunta de entrevista de Cepheid

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