Question: Row = 1 + rand.nextInt(9); input = (char) (rand.nextInt(10) + 'A'); i have create a random row and input column but how do i make

Row = 1 + rand.nextInt(9); input = (char) (rand.nextInt(10) + 'A'); i have create a random row and input column but how do i make the user enter a column between A to J and between row 1-9 and tell if the user missed or hit the ship can u create a random method and place the ship randomly the ship is three places so if the ship is between row 2 and column B so the B,C,D column will be where the ship is write the program in java

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!