双层循环嵌套打印矩形 java public class testone { public static void main(String[] args) { // 打印多行内容 假设打印line_num行 int line_num = 3; for (int i = 0; i < line_num; i++) { int n = 6; for (int j = 0; j < n; j++) { System.out.print("*"); } System.out.println(); } } }