instantiate a arraylist code example
Example 1: initialiser une arraylist
ArrayList couleurs = new ArrayList() {{
add(Rouge);
add(Bleu);
add(Vert);
}};
Example 2: java initalize arraylist
List<Type> list = Arrays.asList(elem1, elem2,..., elemN);