Solved unsupportedoperationexception

Discussion in 'Plugin Development' started by ulsa, Jul 29, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ulsa

    well im adding players and an item uuid to a hashmap
    and calling it uuidmap
    than getting their name from map and adding it to a list
    http://hastebin.com/owezaxevum.avrasm

    but problem is seen on title .. so why ? "i know this is more java related question not bukkit"
     
  2. Offline

    mythbusterma

    ulsa

    Because that's not how you create a List. Make a real list and then try it.
     
  3. Offline

    fireblast709

    ulsa Arrays.asList() returns an immutable List. If you need it mutable, create a new ArrayList
     
  4. Offline

    ulsa

    ah thanks fireblast709 ; didnt knew arrays.aslist creating immutable list. I was using it to create a new list "since there is no array it would create a list" but yes I am using new arraylist now
     
Thread Status:
Not open for further replies.

Share This Page