Question: copyTwoDimBoolArray This is a helper method for you to use in the getters and setters for visited and blocked. Since all four of those methods
copyTwoDimBoolArray
This is a helper method for you to use in the getters and setters for visited and blocked. Since all four of those methods require making a copy of a two dimensional boolean array, it is good for us to make that a helper method so that we do not need to duplicate code.
This method should create a new two dimensional array of booleans that is the same size as the argument passed to it
It should then copy every value from the provided two dimensional array into the new one.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
