for loop

edited January 2017 in Questions about Code

I'm not very good at for loops. What I'm trying to do is use the array of strings, created by the bufferedReader() function, and connect them together into one long string separated by new-lines.
Part of the code:

    String[] messages = split(line, ENTER);
    for (String i : messages) {
      fullMessage = fullMessage + "/n" + messages[i];
    }


Thanks

Tagged:

Answers

Sign In or Register to comment.