Question: Java Question suppose I have a 3 by 3 matrix 2 3 4 1 4 5 5 6 6 and I want to return the

Java Question

suppose I have a 3 by 3 matrix

2 3 4

1 4 5

5 6 6

and I want to return the position of 4 in the second row in the coordinate form, like (x,y). So it would return 4 is at: (2,1).

How would I implement this?

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!