java instantiate collection with values

Java
    List<Integer> integerArray = Arrays.asList(2, 41, 42, 48);
Source

Also in Java: