// Output should be: 1 1 1 1 3 6 3 6 3 1 Hello world! import java.io.IOException; class BoundsBreakTest { public static void main(String[] args) { int [1d] local a = new int [1 : 10]; a.set(1); foreach (p in [1 : 8]) { a[p + [4]] += 2; if (p > [4]) break; } try { foreach (p in [3 : 11 : 2]) { a[p + [3]] += 3; if (p > [4]) throw new IOException(); } } catch (Throwable x) {} foreach (p in a.domain()) { System.out.print(a[p] + " "); } System.out.println("Hello world!"); } }