You want to get an element from an empty array. That’s why the Size: 0
from the exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
So you cant do lstpp.get(0)
until you fill the array.
More Related Contents:
- Unexpected output when creating a List of Lists in Java
- NumberFormatException not wrking java
- Write a program that takes an array/arraylist of integer and finds longest sub array/arraylist whose entries are equal [closed]
- How to create a Java ArrayList in C
- Exception in thread “main” java.lang.IndexOutOfBoundsException: Index: 6, Size: 6 [duplicate]
- Convert list to array in Java [duplicate]
- Java List.add() UnsupportedOperationException
- How to randomize two ArrayLists in the same fashion?
- Moving items around in an ArrayList
- Efficient way to divide a list into lists of n size
- Extended server_name (SNI Extension) not sent with jdk1.8.0 but send with jdk1.7.0
- Trouble with Gson serializing an ArrayList of POJO’s
- what is the sense of final ArrayList?
- Finding duplicate values in arraylist
- Check if an ArrayList contains every element from another ArrayList (or Collection)
- Add object to ArrayList at specified index
- Trying to find all occurrences of an object in Arraylist, in java
- How To Modify The Raw XML message of an Outbound CXF Request?
- ArrayList Vs LinkedList
- How to call a RESTful web service from Android?
- Why can’t you have a “List” in Java? [duplicate]
- how to send an array in url request
- Java Generic with ArrayList
- How to remove specific object from ArrayList in Java?
- Write to a file stream returned from getResourceAsStream()
- Two ArrayList one RecyclerView Adapter
- Java ArrayList how to add elements at the beginning
- Vector vs Collections.synchronizedList(ArrayList)
- Java: using endpoint to publish webservice to tomcat server
- Sending JSONP vs. JSON data?