为什么程序最后输出的括号里是空的?
public class HelloWorld { public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1; i<=3;i++ ) { for (int j = 1; j<=3;j++ ) { System.out.print("*"); } System.out.println(); } } }
public class HelloWorld { public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1; i<=3;i++ ) { for (int j = 1; j<=3;j++ ) { System.out.print("*"); } System.out.println(); } } }
2019-01-05
举报