java语言程序设计第十版(Introduce to java) 课后习题 chapter6-17
自己纯手工,欢迎讨论
package chapter6;
public class T17 {
public static void main(String[] args) {
print(5);
}
public static void print(int n) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
System.out.printf("%d ", Math.round(Math.random()));
}
System.out.println();
}
}
}