Reference+
Name
array()
Class
StringList
Description
Create a new array with a copy of all the values.
Examples
StringList inventory; void setup() { size(200, 200); inventory = new StringList(); inventory.append("coffee"); inventory.append("tea"); inventory.append("flour"); println(inventory); inventory.sort(); String[] sortedInventory = inventory.array(); println(sortedInventory); }
Syntax
.array()
.array(array)
Return
String[]

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.