How to use the Array with .add

Discussion in 'Plugin Development' started by ProStriker123, Aug 22, 2014.

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

    ProStriker123

    i saw someone who added to the arraylist permission like vipgroup.add("plotme.create");
    how can i do it? anyone can explain me please?
     
  2. Offline

    Necrodoom

    Array or arraylist?
     
  3. Offline

    MCMatters

    Learn Grammar and Java.
     
  4. Offline

    ProStriker123

    @Necrodoom, ArrayList<String> vgroup = new ArrayList<String>();
    and how can i add to the array list the permissions with vgroup.add("plotme.create");

    MCMatters, i know my grammer its bad, also thanks for help...
     
  5. Offline

    Necrodoom

    ProStriker123 just add it. I don't see the problem. Read arraylist javadocs.
     
  6. Offline

    ProStriker123

    Necrodoom do i have to create a method for it?
     
  7. Offline

    MineStein

  8. Offline

    teej107

    ProStriker123 Maybe I'm overlooking something, but your example was a valid way to add to an arraylist.
     
  9. Offline

    xTrollxDudex

Thread Status:
Not open for further replies.

Share This Page