Reverse of number in java

public class ReverseOfNumber {

    int reverse = 0;

    public void reverseOfNumber(int number){

        while(number!=0){

            reverse=reverse*10;

            reverse=reverse+number%10;

            number=number/10;

        }

        System.out.println("revese of number is "+reverse);

    }

    public static  void main(String args[]){

        ReverseOfNumber r = new ReverseOfNumber();

        r.reverseOfNumber(2367);

    }

}