Error convert slice&push from P5.js to Processing

Java arrays don’t have any methods but only those inherited by the Object class:
Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html

Besides, Java arrays can’t have its length changed!

If you need a dynamic-sized container, you’re better off using an ArrayList instead:
Processing.org/reference/ArrayList.html

2 Likes