use string collection java code example
Example 1: declaring collection java
import java.util.Collection;
import java.util.ArrayList;
Collection fibonacci = new Arraylist();
Example 2: how to define a collection in java
List list = Arrays.asList("Lars", "Simon");