what type of collections used code example
Example 1: how to define a collection in java
List 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.