List<Integer> list = List.of(1, 2, 3); //Returns an immutable list
var list1 = List.of(1, 2); var list2 = new ArrayList<>(List.of(3, 4)); var list3 = new ArrayList<String>();