
你可以将退格字符打印的
b次数与之前打印的字符相同。
System.out.print("hello");Thread.sleep(1000); // Just to give the user a chance to see "hello".System.out.print("bbbbb");System.out.print("world");注意:这在Mars(4.5)之前的旧版本的Eclipse控制台中无法正常工作。但是,这在命令控制台中可以正常工作。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)