I know how to use an ArrayList as an object like so:
ArrayList<Integer> numbers = new ArrayList<>();
However, as part of an assignment, I'm supposed to fill out the provided method:
private static ArrayList<Token> parse(String s) { }
How am I supposed to work with the ArrayList (which I'm guessing is a parameter) in this case?
sinto tokens, and then store each token in theArrayListwhich you then return to the caller.