java colletions code example
Example 1: how to define a collection in java
List<String> list = Arrays.asList("Lars", "Simon");
Example 2: what is collection fromework
The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures.