public class MainClass { static boolean ShortCut(boolean b) { System.out.print(" ShortCut "); return b; } public static void main(String[] args) { boolean b1 = true; boolean b2 = false; if (b2 & ShortCut(b1)) System.out.println(1); else if (b1 | ShortCut(b2)) System.out.println(2); } }