插入缺少的部分以处理下面代码中的错误。
@(3) {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[10]);
} @(5) (Exception e) {
System.out.println("Something went wrong.");
}
try {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[10]);
} catch (Exception e) {
System.out.println("Something went wrong.");
}