void (String[] args, int d) { String is = null; if (d != 0) return; try { if (Math.random() > 0.5) { double k = 1 / <warning descr="Division by zero">d</warning>; } else { is = "This is printed half of the time"; double k = 1 / <warning descr="Division by zero">0</warning>; } } catch (Exception ex) { ex.printStackTrace(); if (is != null) { System.out.println(is); } } }