-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEscape.java
More file actions
17 lines (16 loc) · 961 Bytes
/
Escape.java
File metadata and controls
17 lines (16 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Escape{
public static void main(String[] args) {
System.out.println("Printing Escape Characters.");
System.out.println("Here \\\\ is used to print:\\.");
System.out.println("Here \\\' is used to print:\'.");
System.out.println("Here \\\" is used to print:\".");
System.out.println("Here \\t is used to print a tab:\tthe space in between is tab.");
System.out.println("Here \\n is used to print new line:\nHere starts the new line!");
System.out.println("Here \\b is used to insert a backspace.");
System.out.println("For ex:Phone\\be,this will print:Phone\be.");
System.out.println("Here \\r is used to insert a carriage return.");
System.out.println("For ex:Pho\\rne,this will print:Pho\rne");
System.out.println("Here \\f is used to insert a form feed.");
System.out.println("For ex:\\f Phone,this will print:\f Phone");
}
}