We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey everyone, I understand that Processing is built on top of java and therefore anything in java is valid in processing. I was wondering how I can use Vectors, Stacks, and Queues in Processing. I try to call them how I would usually do it in java but processing does not recognize the classes Vector or Stack. Do I have to import some sort of library or something? Thanks, Sam
Answers
Class Vector is deprecated. use ArrayList instead!
For stacks & queues, use ArrayDeque. In order to import it, issue this:
import java.util.ArrayDeque;
http://processing.org/reference/ArrayList.html
http://docs.oracle.com/javase/8/docs/api/java/util/ArrayDeque.html