public int bar(int x) { if (x == 0) { // <-- return x+1; // <-- } // <-- System.out.println("Hello, world!"); return x; }