The call to 'get' always fails as index is out of bounds:15
I try this: ArrayIndexOutOfBoundsException, but it's not this one either.
package pl.codegym.task.task09.task0910;
import java.util.ArrayList;
/*
Wyjątek podczas pracy z kolekcjami List
*/
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
try {
ArrayList<String> lista = new ArrayList<String>();
String s = lista.get(18);
} catch (ArrayStoreException e) { // I can't find, what is that exception?
System.out.println("ArrayStoreException");
}
//tutaj wpisz swój kod
}
}