I added import java.util.ArrayList; (per suggestions here) to my code and then I got 2 different kinds of errors. They are:
error: the type of the expression must be an array type but it resolved to java.util.ArrayList<java.lang.Integer>
and:
error: length cannot be resolved or is not a field.
Can anyone tell me what they mean? I've tried changing the length statements by adding () at the end but that cause more errors then I started with.