From the course: Java 11+ Essential Training

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Manage resizable arrays with Lists

Manage resizable arrays with Lists - Java Tutorial

From the course: Java 11+ Essential Training

Start my 1-month free trial

Manage resizable arrays with Lists

- [Instructor] I previously described how to store a collection of values or objects in a simply array. But arrays aren't re-sizeable, and there's a lot of other things you might want to do with collections that only more complex objects can accomplish, and so I'm going to show you a couple of the classes and interfaces that are members of what's called the Java Collections Framework. A collection is exactly that, a collection of data, and collections in Java come in many different types. There are ordered and unordered collections. There are collections that provide various advanced functionality, and they're all grouped together in this collection of code. I'm going to start with lists. A list is an interface. An interface in object oriented programming is essentially a contract that says, any particular class that implements this interface is guaranteed to have a certain set of methods. So when you declare a list…

Contents