Подскажите, что не так сделано?)
package com.javarush.task.pro.task05.task0529;
import java.util.Arrays;
/*
Галаксианские роботанки (1)
*/
public class Solution {
public static String robotank = "☖";
public static String empty = "_";
public static String hit = "🎯";
public static int width = 30;
public static int height = 10;
public static int bombs[][] = new int[height][width];
public static String field[][] = new String[height][width];
public static void main(String[] args) {
// Поле с бомбами//
for (int i = 0; i < bombs.length; i++) {
int count = 0;
for (int j = 0; j < field[i].length; j++) {
while (count != 10) {
int bomb = (int) (Math.random() * 30);
if (bombs[i][bomb] == 0) {
bombs[i][bomb] = 1;
count = count + 1;
}
}
}
}
//поле с танками//
for (int i = 0; i < field.length; i++) {
int x = (int) (Math.random() * 30);
for (int j = 0; j < field[i].length; j++) {
field[i][j] = empty;
field[i][x] = robotank;
if (field[i][j] == robotank && bombs[i][j] == 1) {
field[i][j] = hit;
}
System.out.print(field[i][j]);
}
System.out.println();
}
}
}