public class Ugly { public static void main (String[] args) { b = args.length; ugly(); } public static boolean cond; public static int a; public static int b; public static void ugly() { int a = Ugly.a; int b = Ugly.b; int c; try { c = a / b; } finally { System.out.print ("Hello"); if (cond) { try { throw new NullPointerException (); } catch (Exception e) { System.out.print (" "); } } else { try { throw new NullPointerException (); } catch (Exception e) { System.out.print ("-"); } } System.out.println ("world!"); } System.out.println ("Done!"); } }