The first index in an ArrayList starts at 0.
So when you say get(3), you're actually referring to the 4th entry.
Type: Posts; User: newbie
The first index in an ArrayList starts at 0.
So when you say get(3), you're actually referring to the 4th entry.
What Norm said.
Also:
Call my cynical, but I absolutely doubt that It's returning the 4th ArrayList entry based on the code you posted.
Edit: To add to Norms post, check out indexOf and...