/**
* @author lautturi.com
* Java example: catch multiple Exceptions in java
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
try {
int array[] = new int[5];
array[7] = 30 / 0;
} catch (ArithmeticException | ArrayIndexOutOfBoundsException e) {
System.out.println(e.getMessage());
}
}
}