/* TestEscape.java CIS 160 David Klick 2015-09-09 Demonstrates use of escape sequences in output */ public class TestEscape { public static void main(String[] args) throws InterruptedException { for (int i=0; i<20; i++) { System.out.print("\r" + i); Thread.sleep(500); } } } /* Java escape sequences \b - backspace \t - tab \n - linefeed \f - formfeed \r - carriage return \" - double quote \' - single quote \\ - backslash */