We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I created this methood because I needed it and It wasn't included in processing and am sharing it for people who may want it. I am also open to suggestions. It is a different version of join() (http://processing.org/reference/join_.html).
String join(int[] val, String sep) {
String string = "";
for(int i = 0; i < val.length; i++) {
if(i != 0) {
string += sep;
}
string += "" + val[i];
}
return string;
}
Answers
How about this 1? ;;)
KaiGrid, read up on StringBuffer / StringBuilder.
And no need for the "" + val[i] trick, as += already converts the int to string.