这可以在我的特定控制台(Windows)上使用,但不是很便携…
public class Test { public static void main(String[] args) throws Exception { for (int i = 0; i < 100; i++) { System.out.print("#"); if (i % 20 == 0) { System.out.print("r r"); } System.out.flush(); Thread.sleep(100); } }}还有
Console课程,但据我所知实际上并没有买多少钱……



