Question: JAVA: Whats wrong with my code? the assignment is : What the output is supposed to be: What my output is: only the original coordinate
JAVA: Whats wrong with my code?
the assignment is :

What the output is supposed to be:

What my output is: only the original coordinate changes, none others. even thought i wrote the code to check and change left right up and down.

my code: i feel like im very close so i would like to change/add as little as possible. Please let me know whats going on.


First, read and display the contents of this matrix to the screen. Second, prompt the user for (row, col) coordinates (what are passed to your program through command line argument list). Note the character that is stored in that position. Replace that character with a*. Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with '". Study these two examples
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
