- Processing is a Java library. And Java is a strongly typed language.
- And under Processing’s current Java version 8, we have to specify the datatype of each declared variable.
- Also, Java arrays can’t change its length later:
Processing.org/reference/Array.html - If we need to do so, we’re gonna need an ArrayList instead:
Processing.org/reference/ArrayList.html
Forum.Processing.org/two/discussion/8080/why-use-arraylist-instead-of-array-with-append - You can check the sketches from the link below, which are available for both Java Mode & p5.js versions:
4 Likes