как исправить java.lang.IndexOutOfBoundsException

Исключение в теме "главный" java.lang.IndexOutOfBoundsException: индекс: 0, размер: 0 в java.util.ArrayList.rangeCheck (ArrayList.java:604)

в строке arraylist.java

private void rangeCheck(int index) {
    if (index >= size)
        throw new IndexOutOfBoundsException(outOfBoundsMsg(index));
}

в соответствии

List lstpp = getResult(pp) ;
    System.out.println("=====Persegi Panjang====");
    System.out.println("luas = "+((Integer)lstpp.get(0)));

Пожалуйста помоги

Ответы на вопрос(6)

Ваш ответ на вопрос