Exception in thread \"main\" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604)
You want to get an element from an empty array. That's why the Size: 0 from the exception
Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
So you cant do lstpp.get(0) until you fill the array.
lstpp.get(0)