Become a member
Sign in
“Arrays.asList : Be aware that the lists created by this method are non-modifiable”
1
2
Devin McIntyre
Devin McIntyre
Devin McIntyre
Jul 24, 2017 · 1 min read

(I will note that I shortened the code. Here’s a full code snippet to see what I’m talking about)

List<Integer> wat = Arrays.asList(1, 2, 3);
wat.set(0, 4);
wat.forEach(System.out::println);

    Devin McIntyre

    Written by

    Devin McIntyre

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal