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()
- private
- public
- pushStyle()
- push()
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
null
Description
Special value used to signify the target is not a valid data element. In Processing, you may run across the keyword null when trying to access data which is not there.
Examples
String content = "It is a beautiful day."; String[] results; // Declare empty String array results = match(content, "orange"); // The match statement above will fail to find // the word "orange" in the String 'content', so // it will return a null value to 'results'. if (results == null) { println("Value of 'results' is null."); // This line is printed } else { println("Value of 'results' is not null!"); // This line is not printed }

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