You’re using it on a List implementation returned by Arrays.asList(), which returns a fixed-length collection, therefore a remove is unsupported.
You’re using it on a List implementation returned by Arrays.asList(), which returns a fixed-length collection, therefore a remove is unsupported.