Java Collection Framework
lastmod 2020-10-12created 2020-10-124 edits
The environment that provides basic data structures in JAVA is called the JAVA Collection Framework.
Categories
Inheritance structure
The following is the basic inheritance structure of the JAVA Collection Framework:
Java_collection_framework_preview.png
Array to Collection
How to convert an array into a collection.
File [] sublist;
// ...
ArrayList<File> list = new ArrayList<File>(sublist.length);
Collections.addAll(list, sublist);