Исключение в потоке «main» java.lang.IndexOutOfBoundsException: Индекс:
0, Размер: 0 в java. util.ArrayList.rangeCheck(ArrayList.java:604)
Это находится в этой строке файла arraylist.java:< /p>
Код: Выделить всё
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)));
Подробнее здесь: https://stackoverflow.com/questions/188 ... sexception
Мобильная версия