Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- public
- private
- pushStyle()
- push()
- return
- redraw()
- ; (semicolon)
- setResizable()
- setLocation()
- setTitle()
- setup()
- static
- super
- this
- true
- thread()
- void
- try
Name
size()
Class
StringList
Description
Get the length of the list.
Examples
StringList inventory; void setup() { size(200, 200); inventory = new StringList(); inventory.append("coffee"); inventory.append("flour"); inventory.append("tea"); println(inventory); int s = inventory.size(); println(s); }
Syntax
.size()
Return
int

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