Exception in thread "main" java.lang.IndexOutOfBoundsException: Index:
0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604)
in line of arraylist.java
private void rangeCheck(int index) {
if (index >= size)
throw new IndexOutOfBoundsException(outOfBoundsMsg(index));
}
in line
List lstpp = getResult(pp) ;
System.out.println("=====Persegi Panjang====");
System.out.println("luas = "+((Integer)lstpp.get(0)));
Please help
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…