public class Test {
public static void main(String[] args) {
int[][] nums = new int[4][4];
nums[3][2] = 1;
nums[3][3] = 1;
for (int row = 0; row < nums.length; row++) {
for (int col = 0; col < nums[row].length; col++) {
int value = nums[row][col];
if (value == 1) continue;
System.out.print("*");
}
System.out.print("\n"); // 换行
}
}
}求采纳!