Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 examplesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started