+ 1

2D array Help in JAVA

Hello I need help with my code. I posted what my assignment is asking for but I am not getting it to do what I want. Could someone give me some feedback on how to correct it? Thank you . https://code.sololearn.com/c9TR9W9GSBc3/#java Declare a two dimensional array of 10 by 10 of characters. Go through each and every element (use nested for loops) and use a random value from 0 to 14. If the value is 0, put in a "*", if it is 1 or 2, put in a ".", otherwise put in a blank. Have the program then ask where you want to place your satellite (via row and column). Verify the row and column is in the 0 to 9 range. If there is a star, state "Cannot place there" and ask for another location. If it is blank, put in a " ". Now print "Starry night" as a title then print your starry night (don't need row and column numbers). Note: to get it to pass hypergrade, use the seed of 1701

30th Nov 2020, 7:49 AM
Iris
2 Réponses
+ 2
Thank you Martin you are very helpful. I appreciate your response. It is very detailed and helps me see what I am doing wrong . I have been struggling with this problem for a while. I am going to make the changes. Thanks again.
30th Nov 2020, 9:07 AM
Iris
+ 1
Wow Martin you are a dedicated father and programming professional. Thank you so much for your help. It is greatly appreciated.
1st Dec 2020, 1:56 AM
Iris