jak naprawić java.lang.IndexOutOfBoundsException

Wyjątek w wątku „main” java.lang.IndexOutOfBoundsException: Index: 0, rozmiar: 0 w java.util.ArrayList.rangeCheck (ArrayList.java:604)

w linii arraylist.java

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

w linii

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

Proszę pomóż

questionAnswers(6)

yourAnswerToTheQuestion