The collections framework

The Java collections framework is basically a collection of interfaces and classes. To program efficiently, or use the flexibility of Java methods, Java has designed a framework, which consists of different classes and interfaces. The collections framework helps in storing and processing data efficiently. This framework has several useful classes that have tons of useful functions, that make a programmer's task super easy.

We have seen a lot of concepts about arrays and multidimensional arrays. For example, in an array, if we want to delete one of the indexes out of a new set of arrays, we can do that using the collections framework. Let's say in one array there are 10 values, and we want to remove the fifth value, or insert a value between the fifth and sixth values—there are some flexibility methods that you will get in the collections framework.

The kinds of method available in this collection framework, and how they can be used effectively, will be discussed in further sections. So just to give you an idea, remember that a collection is a set of classes and interfaces.

We will have a look at the collections this framework has to offer.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.183.187