2 ms·
Arrays.asList doesn’t generate an immutable list, prevent writes to the array, or prevent modifying the array via the List interface. https://docs.oracle.com/e
by cowsandmilk 3y ago
Arrays.asList doesn’t generate an immutable list, prevent writes to the array, or prevent modifying the array via the List interface.
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Arrays.html#asList(T https://docs.oracle.com/en/java/javase/17/docs/api/java.base......)