This reference is for Processing 2.0+. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.
String animals = new String; animals = "cat"; animals = "seal"; animals = "bear"; String joinedAnimals = join(animals, " : "); println(joinedAnimals); // Prints "cat : seal : bear" // Joining an array of ints requires first // converting to an array of Strings int numbers = new int; numbers = 8; numbers = 67; numbers = 5; String joinedNumbers = join(nf(numbers, 0), ", "); println(joinedNumbers); // Prints "8, 67, 5"
|Description||Combines an array of Strings into one String, each separated by the character(s) used for the separator parameter. To join arrays of ints or floats, it's necessary to first convert them to Strings using nf() or nfs().|