Let's look at something called Skip sequences an escape sequence is basically a Carriker preceded by 2
a backslash it helps in using certain special characters in stringin character literals. 3
We know that staying in character letters represent x but to include certain special characters we need 4
to use the corresponding escape sequences. 5
On here are the eight as give sequences the Djala supports the first five which are emphasized in green 6
are probably the only ones you will ever use. 7
So let's not worry about the last three the fastest Gip sequence is for inserting a double chord. 8
Second is for inserting a single chord. 9
Third one is for inserting a newline Fortius for inserting it up and first as for inserting it back 10
slash yourself. 11
So what you see here are the only valid escape sequences so you follow the backslash with any other 12
character other than what you see here. 13
Then you get a compiler 14
however you can follow a backslash with you bitches and followed by some hexadecimal number to represent 15
the Unicode number. 16
We already know this from our discussion on characters. 17
This particular Unicode number Bentz character in uppercase. 18
However if you have just a backslash followed by you get down to following Unico number then we get 19
a compiler error. 20
Finally just know that it is not required to use an escape sequence to insert a double quote getting 21
a character written so you can use it directly. 22
You can still use an escape sequence if you want to but it's not just mandatory similarly does not require 23
to use an escape sequence to insert a single court within a string Latron OK let me know pull up my 24
Eclipse and we can look at the first five or skip sequences. 25
OK here we are in the basics to a class in the main matter. 26
And here we are declaring a string Esben and it is initialized with the string letter. 27
Hello Mr. John. 28
How are you. 29
And we are simply printing a string here and here we have a variable s2 which is of type quarterly and 30
it is initialized with the text. 31
Hello. 32
So let me just run this so it prints the string here. 33
Now let's if you want to insert or double quotes here we want to gross this text Mr. double quotes. 34
So as soon as I entered the court here we can see that we have a compiler error. 35
Ok so since it's a special Carriker we need to skip it by inserting a backslash. 36
Same here. 37
Now let me compiled or let me just say it. 38
And now when I run it you can see that the text Mr is enclosed in double quotes. 39
Now let's try a single quote here. 40
And the second declaration. 41
So if I put a single course here if I replace each with a single court it gives a compiler error. 42
So because single quotes is a special character. 43
And so you need to skip it. 44
So that's good. 45
Now let's say if you want to insert a double quote here you can either do this. 46
You can escape it are like like we like men like we mentioned earlier. 47
You can just put the double use of double quote Also it's fine. 48
OK. 49
The same goes here also so you can use either a single code display by skipping order you can just use 50
a single code directly if it does it string letter. 51
OK. 52
So we already discussed that. 53
Now let's say we want to insert a newline here so just put a new line on Iran. 54
As you can see how are you as in the second line. 55
Now if you want to insert a tab here just put a slash beat and as you can see there isn't Hardies on 56
top here. 57
OK. 58
So how does Underdark sort of especially useful if you're writing somebody who files iron especially 59
if you're writing some product based off for example. 60
So you might help out I mean a description and other stuff product you order and stuff like that. 61
So that kind of data you might find useful to use tops over there. 62
So that's just one example. 63
Let's see if you want to replace this with a backslash. 64
Then you can just put do backslashes here I skip sequence one a backslash and as you can see there is 65
a backslash here. 66
So those are the only main ones which you will most frequently use the double chords single chords new 67
line tab on a backslash. 68
OK. 69
And that's about it. 70
Understand that is to escape sequences. 71
Thank you.