Cepheid Interview Question

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