1/9
These flashcards cover key vocabulary and concepts related to ArrayList operations and exceptions in Java, as discussed in the lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
ArrayList
A resizable array implementation of the List interface in Java.
IndexOutOfBoundsException
An exception thrown when trying to access an index that is outside the bounds of an array or array-like structure.
set(int index, E obj)
A method that replaces the element at the specified position in this list with the specified element.
add(index, obj)
Inserts the specified element at the specified position in this list.
size()
Returns the number of elements in the ArrayList.
remove(int index)
Removes the element at the specified position in the ArrayList.
Dynamic resizing
The ability of the ArrayList to grow as elements are added.
for-each loop
A control flow statement for iterating over elements in a collection or array.
get(int index)
Returns the element at the specified position in the ArrayList.
swapEnds
A method for swapping the first and last elements of an ArrayList.