Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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......)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: