Question: I am beginner please help. Will rate good. Write a code in JAVA that takes the input of the number of rows and columns required

I am beginner please help. Will rate good.

Write a code in JAVA that takes the input of the number of rows and columns required by the user. The code should basically take the input and store a given item to the first place avaliable and when it comes to add the next item - it should add to the next first empty space found.

The code should print first the row and col number and then an output showing '#" that the place is booked - like in the example below.

Row: 0 

Col: 0

(a map example with 3 rows and 2 col if entered by the user)

| # | | |

| | | |

| | | |

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!