Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
79 views
in Technique[技术] by (71.8m points)

java - What are all the escape characters?

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


 : Newline

 : Carriage return
 : Tab
\ : Backslash
...

Is there a complete list somewhere?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can find the full list here.

  • Insert a tab in the text at this point.
  • Insert a backspace in the text at this point.
  • Insert a newline in the text at this point.
  • Insert a carriage return in the text at this point.
  • f Insert a formfeed in the text at this point.
  • ' Insert a single quote character in the text at this point.
  • " Insert a double quote character in the text at this point.
  • \ Insert a backslash character in the text at this point.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...