Introduction to Java Programming编程题5.17<01矩阵>
public class MatrixZeroOne { public static void main(String[] args) { int randomNumber; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { randomNumber = (int)(Math.ran