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

kNNNNNNNN kNNNNNNNN

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!