KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code: ArrayList<Integer> arr = new ArrayList<Integer>(10); arr.set(0,5); I am getting an index out of bounds error, and I don't know why. I have declared the ArrayList of size 10. Why do I get this error?
Tags (comma-separated)
Save Edits
Cancel