// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Test {
    public static int fac(int n) {
        if(n <= 1) {
            return 1;
        } else {
            return n * fac(n - 1);
        }
    }
    public static void sub1() {
        sub2();
    }
    public static void sub2() {
        sub3();
    }
    public static void sub3() {
        throw new RuntimeException("oops");
    }
    public static void main(String[] args) {
        System.out.println(fac(4));
        sub1();
    }
}
