You're trying to cast an array of ArrayList objects to an int. Of course you get an error.
First of all, you want a plain old ArrayList
, not an array of ArrayList
s.
Second, you use Integer.parseInt()
to turn String
objects into int
s. int
is a primitive type, not a class type, and certainly not a superclass of String
.