Question: JAVA Make a program as follows Define 2D char array (5 by 5) and initialize with Repeatedly display the array using while loop. asterisk mark
JAVA

Make a program as follows Define 2D char array (5 by 5) and initialize with Repeatedly display the array using while loop. asterisk mark Define two int variable y, x that represent y, x coordinate (row and column index) and initialize as 2 and 0. y 2, x-0 In each iteration of the while loop, randomly move to sweep *s. For example, once@ moves to next column (yIx+1]), assign a blank on the array [y][x] and assign @ on [21[1] When all * are removed, the while loop is terminated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
