//Escape Sequences and Comments. public class MyProgram { public static void main (String[] args) { System.out.println("Ahmed\tmedo");//Tab System.out.println("Ahmed\bmedo");//backspace System.out.println("Ahmed\nmedo");//newline System.out.println("Ahmed\rmedo");//carriage return. System.out.println("Ahmed\fmedo"); System.out.println("Ahmed\'medo"); System.out.println("Ahmed\"medo"); System.out.println("Ahmed\\medo"); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter