Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- exit()
- () (parentheses)
- null
- pop()
- popStyle()
- public
- private
- pushStyle()
- push()
- redraw()
- return
- setLocation()
- ; (semicolon)
- setTitle()
- setResizable()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
set()
Class
IntDict
Description
Create a new key/value pair or change the value of one.
Examples
IntDict inventory; void setup() { size(200, 200); inventory = new IntDict(); inventory.set("cd", 84); inventory.set("tapes", 15); inventory.set("records", 102); println(inventory); inventory.set("records", 90); // Fewer records inventory.set("mp3s", 2054); // Add MP3s println(inventory); }
Syntax
.set(key, amount)
Return
void

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