Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Java Data Structures!
You have completed Java Data Structures!
Preview
The `java.util.List` interface supports a collection of ordered items that allows for additions and deletions. Let's check out some of its power! You may never use an Array again.
Resources
Keyboard Shortcuts
- Clear: [Ctrl + L]
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Well, here's that better way. Lists.
0:00
Just like arrays,
lists are an ordered collection of items.
0:02
You can insert or replace items
wherever you want by index,
0:05
and just like arrays,
those indices are zero-based.
0:09
You can check if an item is in the list
and sort it, too.
0:13
There's several implementations
of the list interface that are included.
0:16
Let's take a look at my most
commonly used one, the ArrayList.
0:20
Okay, so let's pop over to the List
0:26
Interface documentation real quick.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up