public class Battleship {
static void Board(){
String[][]fieldSize={
{"~~~~~"},~~~~~
{""},
{"~~~~~"},~~~~~
{""},
{"~~~~~"},~~~~~
{""},
{"~~~~~"},~~~~~
{""},
{"~~~~~"},~~~~~
{""}
};
for(int i=0;i<fieldSize.length;i++){
for(int j=0;j<fieldSize[i].length;j++){
System.out.print(fieldSize[i][j]+" ");
}
System.out.println();
}
}
public static void main(String[] args) {
Board();
}
}
Top comments (0)