Pergunta de entrevista da empresa Cepheid

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