正文

Java程序中打印虚线的方法有很多,以下是一些常见的方法: 1. 使用控制台输出: ```java for (int i = 0; i < 20; i++) { System.out.print("-"); if (i % 2 == 0) { System.out.print("\n");