recursion.mj 162 Bytes
Newer Older
uwgwb's avatar
uwgwb committed
1 2 3 4 5 6 7
class Fac {
    public int factorial(int i) {
        if(i == 1) return 1;
        return factorial(i - 1);
    }
    public static void main(String[] args) {}
}