I have a 2D array of objects of class Cell. In a separate Maze class I read in the 2D array from a file, and now I need to have a method that returns the entire array as a String. I’m not sure how to go about doing this, any help would be wonderful(I have a method in the Cell class that will return the cell as a string).
Share
Print your matrix with 2 nested loops:
Granted that your
Cellobject has atoString()method.