collection data type in java code example
Example 1: import collections in java
import java.util.Collection;
Example 2: how to define a collection in java
List<String> list = Arrays.asList("Lars", "Simon");
import java.util.Collection;
List<String> list = Arrays.asList("Lars", "Simon");