Array of lists

Discussion in 'Plugin Development' started by Megolas, Aug 22, 2012.

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

    Megolas

    Hello - is it possible to create an array of Player lists?

    I tried many variations of the following
    List<Player> lists[] = List<Player>[]{};

    But none seemed to worked

    Thanks!
     
  2. Offline

    Mr Burkes

    I don't think it's possible to create an array of Lists, but it is possible (to my understanding) that you can create a List of Lists.
     
  3. it's not really clean but that should work:
    Code:
    List<String>[] arrayLists = (List<String>[])new ArrayList[1];
     
Thread Status:
Not open for further replies.

Share This Page