5
I’m creating a list from a array using the method Arrays.asList.
Now I want to remove the first element, but Java accuses:
Exception in thread "main" java.lang.Unsupportedoperationexception
List<Integer> lista = Arrays.asList(new Integer[] { 1, 2, 3 } );
lista.remove(0);