This content has been marked as final. Show 4 replies
An0m4ly wrote:Calling add(5,10) will throw an IndexOutOfBoundsException exception. This is noted in the API, which you must have seen already since you were in the LinkedList API.
say you have an integer linked list created that contains the following
2-> 4-> 6-> 8
if you call the following
LinkedList API:Edited by: almightywiz on Apr 18, 2010 2:37 PM
IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).