Question: JAVA, ARRAYS Got char array of size [11][11]. All array contains of ~ except 1st row and 1sr column. How to printout on * places
JAVA, ARRAYS
Got char array of size [11][11].
All array contains of ~ except 1st row and 1sr column.
How to printout on * places number of current column and A B C D Letters? As on image, on array[0][..] should be like 1 2 3 4 5 6 7 8 9 10. and on array [..][0] should be A B C D.. Idea for battleship game coordinates.
So far got part of code:
if(i==0 || j==0){ sea[i][j] = '*'; ----there should be something i guess but confused how }else { sea[i][j] = '~'; }
![JAVA, ARRAYS Got char array of size [11][11]. All array contains of](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f332aed6e9d_25466f332ae8a3ea.jpg)
kNNNNNNNN kNNNNNNNN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
