Integer[] array = new Integer[]{3, 5, 6, 7};
List<Integer> list = Arrays.asList(array);
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6);
list.add(7);
list.remove(1);
// Exception in thread "main" java.lang.UnsupportedOperationException
Integer[] array = new Integer[]{1,2,3,4};
List<Integer> list = Arrays.asList(array);
array[0] = 10;
// здесь list.get(0) == 10
List<Integer> list = Arrays.asList(1, 2, 3);
list.set(1, 4);
// здесь list.get(1) == 4
Integer[] array = new Integer[]{1, 2, 3};
List<Integer> list = Arrays.asList(array);
list.set(0, 5);
// здесь array[0] == 5
String[] array = new String[]{"Java", "Python", "C#"};
List<String> list = List.of(array);
String[] array = new String[]{"Java", "Python", "C#"};
List<String> list = List.of(array);
array[0] = "С++";
// здесь list.get(0) == "Java"
String[] array = new String[]{"Java", "Python", "C#"};
List<String> list = List.of(array);
list.set(1, "C++");
// Exception in thread "main" java.lang.UnsupportedOperationException
List.of("Hello", null, "World")
// Exception in thread "main" java.lang.NullPointerException