Haha! :D
Type: Posts; User: newbie
An ArrayList which contains values: 2, 4, 6, 8 has a size of 4.
get(int) method returns the value @ the specified index.
ArrayList indices start from 0.
In this case, all the indices will range...
Try thinking -.-
Now, with what I also said in mind, what index would your value '33' correspond to?
.get(int) refers to the Arraylist index, not the value of the ArrayList object.
Note:
ArrayList indices start off from 0, just like arrays.
Edit: Too slow :D