Common escape sequence | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Common escape sequence

\n. : it advance cursor to the next line in subsequent printing \t. :it cause the cursor to skip over to the next tap stop \b. : cause the cursor to back up or move left by 1 position \r. :It will cause the cursor to move to beginning of the current line \\ : Causes backslash to be printed \' : causes single citation mark to be printed \" : cause double cotetion mark to be printed tq

8th Feb 2017, 7:15 AM
ADITYA AVADHANI M.L
ADITYA AVADHANI M.L - avatar
3 Answers
+ 2
system.out.print ("programing is tooooo fun \n") ; system.out.print("program"); bro try your self by. Changing \n, by \n, \b , \r "\\" \' \" etc try yourself and see the output and observe how the output is changing tq
8th Feb 2017, 7:28 AM
ADITYA AVADHANI M.L
ADITYA AVADHANI M.L - avatar
0
nice information bro plz anyone give examples for this escape sequence
8th Feb 2017, 7:21 AM
ram
0
thank-you for this response
8th Feb 2017, 7:29 AM
ram