001package basics.functions;
002public class Main {
003        private Main() {}
004        static public void main (final String[] args) { 
005                //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
006                Fun.f();
007                Fun.g(2);
008        }
009}
010class Fun {
011        private Fun() {}
012        static void f() { System.out.println("Fun.f()"); }
013        static void g(final int x) {
014                System.out.println("Fun.g(" + x + ")");
015                if (x>0) {
016                        final int y = x-1;
017                        Fun.g(y);
018                }
019        }
020}