What is myArray?
You say you are working with 2-d arrays (technicality - you are not.
Java only has 1-d arrays, but an array can have elements that are arrays...).
My GUESS is that myArray is what you think is your 2-d array, so when you iterate through it, you get back arrays. You need a nested loop to then iterate through the array you get. Something like:
Note: the above was written quickly, free-hand and may not be 100% syntactically correct.
I like to use an egg analogy. You want to store eggs. So, a 1-d array would be an egg carton. It can hold up to 12 eggs.
A 2-d array is like a crate of egg cartons. You can access any one carton in the crate, and then access an individual egg from the carton.
A 3-d array is like a pallate of crates of egg cartons.
you can keep going with this quite easily up to a fleet of trucks. You can access a specific truck in a fleet, then a specific palate in the truck, then a specific crate, then a specific carton, and then a specific egg.