recursion parameter issue

    public void mystery1(int n) {
    if (n <= 1) {
        System.out.print(n);
    } else {
        mystery1(n / 2);
        System.out.print(", " + n);
    }
    }
       
What gives this code for odd numbers. Becuase when we divide it it will not be an integer. 


recursion parameter issue
===


    public void mystery1(int n) {
    if (n <= 1) {
        System.out.print(n);
    } else {
        mystery1(n / 2);
        System.out.print(", " + n);
    }
    }
       
What gives this code for odd numbers. Becuase when we divide it it will not be an integer. 

