Advertisement
Guest User

Untitled

a guest
Aug 14th, 2014
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1.     public static void task4() {
  2.         int[][] matrixMinus = new int[2][2];
  3.         for (int i = 0; i < 2; i++) {
  4.             for (int j = 0; j < 2; j++) {
  5.                 matrixMinus[i][j] = (int)(0 - Math.random() * 100);
  6.                 System.out.print("[" + i + "][" + j + "]" + matrixMinus[i][j] + "\t");
  7.             }
  8.             System.out.println();
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement