fork download
  1. import java.util.*;
  2. public class Main {
  3. public static String[][] board = new String[10][10];
  4. static {
  5. for(String[] row: board) Arrays.fill(row, "0");
  6. }
  7. public static void main(String[] args){
  8. System.out.println(Arrays.deepToString(board));
  9. }
  10. }
Success #stdin #stdout 0.07s 32508KB
stdin
Standard input is empty
stdout
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]