Coba tangkap dari Exception Java

try {
    // Your Code        
} catch (IndexOutOfBoundsException exception) {
    exception.printStackTrace();     
}
Cloudy Civet