I am creating a list from a array
using the Arrays.asList
method.
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);