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