In this section, we will review how collection objects can be created and initialized, what immutable collections are, and how to perform basic operations over collections—copy, sort, and shuffle, for example.
Managing collections
Initializing collections
We have already seen a few examples of collection constructors without parameters. Now, we are going to see other ways to create and initialize collection objects.
Collection constructor
Each of the collection classes has a constructor that accepts a collection of elements of the same type. For example, here is...