/** * Try-catch a little looser than it could be * Worse, no messaging in the catch **/ public class Crash1a { static int[] a = { 10, 20, 30, 40, 50 }; public static void main(String[] args) { try { for (int i = 0; i <= 10; i++) { System.out.println(a[i]); } System.out.println("Done printing the array!"); } catch (Exception e) { } } }