Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What method would you use to add a new element to a list?
Think about how you would append an item to the end.
How would you access the first item in a list?
Remember indexes start at zero.
Which method would you use to remove an element from a list?
Think about what action is represented by each method.
True or False: The get method can retrieve any element in the list.
Consider the concept of accessing elements by index.
Given an ArrayList of integers, write a method to find and replace all occurrences of a value with another value.
Think about how you'd loop through and access each element.
Create a list of your five favorite books, then use the listIterator to print them in reverse order.
Remember how to initialize the listIterator and its methods.
4 more questions in this section. Enroll free to practise them all.
Enroll free