fork download
  1. import java.util.concurrent.ThreadLocalRandom;
  2.  
  3. class Main
  4. {
  5. public static void main (String[] args)
  6. {
  7. int[][] array = new int[10][10];
  8. for(int Y = 0; Y < array[0].length; Y++){
  9. for(int X = 0; X < array.length; X++){
  10. array[X][Y] = ThreadLocalRandom.current().nextInt(0,10);
  11. System.out.print("|" + array[X][Y]);
  12. }
  13. System.out.println("|");
  14. }
  15. }
  16. }
Success #stdin #stdout 0.05s 711168KB
stdin
Standard input is empty
stdout
|8|1|6|9|2|4|2|6|6|9|
|9|9|4|8|7|8|6|2|3|3|
|3|2|2|0|6|0|1|9|9|6|
|4|8|1|0|6|6|7|9|6|7|
|7|1|2|3|1|3|0|0|7|3|
|3|1|8|8|6|3|0|5|0|6|
|1|9|6|7|8|5|7|5|8|8|
|8|9|0|9|2|4|0|7|4|5|
|3|9|5|6|9|5|6|7|9|7|
|8|6|5|4|6|8|8|8|9|3|