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 :

JAVA: Whats wrong with my code? the assignment is : What the

What the output is supposed to be:

output is supposed to be: What my output is: only the original

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.

coordinate changes, none others. even thought i wrote the code to check

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.

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!