Converting a String List into Individual Strings

Discussion in 'Plugin Development' started by GeekyCompz, Feb 28, 2014.

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

    GeekyCompz

    Hey.

    Is this possible? To convert a string list, that is in a config, to individual strings.

    - Hello
    - 2nd line!
    - 3rd line!
    - ADD MORE! Supports adding more of these!

    ^ like that, in the config. But then on seperate lines in the chat. Aswell as replacing full string like "%name%" with the players username.?.

    THANKS!
    ~ BytesCode
     
  2. Offline

    RawCode

    they already individual strings placed into array and wrapped by list.

    try reading java specs about arraylist
     
  3. Offline

    Jake6177

    for (String s : list) {
    System.out.println(s);
    }
     
  4. Offline

    xTrollxDudex

    GeekyCompz
    Use replace(...) to remove the %andbdb%
     
Thread Status:
Not open for further replies.

Share This Page