This is in Java
I'm not sure what is wrong with the arrayName.length in my code, it doesn't work on both occasions
for (int i = 0; i<arr.length; i++)
{
for(int j = 0; j < arr2.length; j++)
{
}
}
These two arrays are char arrays and does not seem want to work with the .length method. It says that "length cannot be resolved or is not a field"
Can someone please explain to me why this is happening

ArrayList- you should import it and call the methodsize()on an instance