wie man java.lang.IndexOutOfBoundsException behebt
Ausnahme im Thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Größe: 0 bei java.util.ArrayList.rangeCheck (ArrayList.java:604)
in der Zeile arraylist.java
private void rangeCheck(int index) {
if (index >= size)
throw new IndexOutOfBoundsException(outOfBoundsMsg(index));
}
in der Reihe
List lstpp = getResult(pp) ;
System.out.println("=====Persegi Panjang====");
System.out.println("luas = "+((Integer)lstpp.get(0)));
Bitte helfen Sie