Question: The subject related to OBJECT ORIENTED PROGRAMMING (JAVA) java not another language. The alligator tries to find the way to the river. 1 presents path,
The subject related to OBJECT ORIENTED PROGRAMMING (JAVA) java not another language.


The alligator tries to find the way to the river. 1 presents path, 0 presents non-path. Please write a program to make the alligator to access to the river. The followed pats should be 2 . The result is given below. \begin{tabular}{|l|l|l|l|l|l|l|l|} \hline 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 0 & 2 & 0 & 0 & 0 & 2 & 0 & 0 \\ \hline 0 & 2 & 0 & 0 & 2 & 0 & 2 & 0 \\ \hline 0 & 0 & 2 & 2 & 0 & 0 & 0 & \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
