what are the different collections in java code example Example: how to define a collection in java List<String> list = Arrays.asList("Lars", "Simon");