collection programs in java code example
Example 1: how to define a collection in java
List<String> list = Arrays.asList("Lars", "Simon");
Example 2: what type of collections used
Depending on the data that I am working with, I use
Arrays, Lists, Sets, Maps.