What are all the escape characters?

后端 未结 4 1122
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 05:18

I know some of the escape characters in Java, e.g.

\\n : Newline
\\r : Carriage return
\\t : Tab
\\\\ : Backslash
...

Is there a complete l

4条回答
  •  青春惊慌失措
    2020-11-22 06:08

    Yes, below is a link of docs.Oracle where you can find complete list of escape characters in Java.

    Escape characters are always preceded with "\" and used to perform some specific task like go to next line etc.

    For more Details on Escape Character Refer following link:

    https://docs.oracle.com/javase/tutorial/java/data/characters.html

提交回复
热议问题