Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a code (in JAVA) to traverse a matrix to count how many (@) signs are grouped. A group is when all @ symbols are

Write a code (in JAVA) to traverse a matrix to count how many (@) signs are grouped. A group is when all @ symbols are touching up, down, left, and right. NOT diagonally. A comma (,) represents blank spaces in the matrix.
Top left corner of matrix is 0,0.
The first parameter will be a string containing all of the values in the grid. The values (in the string) must be converted into a String[][] matrix. The second parameter will contain a String that contains all of the coordinate pairs to check.
Print out the number of @ signs grouped at each of the coordinate pairs.
Use recursive! And program is in Java :)
Only code given:
int start(int a, int b)
{
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

What are the virtual networks of your configuration (in ESXI 6.7)?

Answered: 1 week ago