1 java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 2 2 ok at 0 3 ok at 1 4 java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2