We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Answers
https://Processing.org/reference/join_.html
The mistake you're making is that "i" is a String, so it should just be + i not + messages[i].
Using the join function definitely sounds like the best option though.
This new kind of for-loop doesn't rely on an int i it's counting (and what used to be used to get the value from the array) but receives the array members of the array directly (hence String)