15.2.3 - Key Methods
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What method would you use to add a new element to a list?
💡 Hint: Think about how you would append an item to the end.
How would you access the first item in a list?
💡 Hint: Remember indexes start at zero.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
Which method would you use to remove an element from a list?
💡 Hint: Think about what action is represented by each method.
True or False: The get method can retrieve any element in the list.
💡 Hint: Consider the concept of accessing elements by index.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
Given an ArrayList of integers, write a method to find and replace all occurrences of a value with another value.
💡 Hint: 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.
💡 Hint: Remember how to initialize the listIterator and its methods.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.