List<String> strings = new ArrayList<>(List.of("Hello", "world"));
List<String> strings = new ArrayList<>(Arrays.asList("Hello","world"));
[
add
]
[
|
|
...
]
List<String> strings = new ArrayList<>(List.of("Hello", "world"));
List<String> strings = new ArrayList<>(Arrays.asList("Hello","world"));