Java String use quotes without escape character

后端 未结 3 998
北恋
北恋 2021-01-12 12:49

I know that it is possible to write double quotes in Java strings by putting \\ symbol before them. But if double quotes are used a lot in a string, is there a

3条回答
  •  被撕碎了的回忆
    2021-01-12 13:13

    No, there is no such way to write a String literal with unescaped quotes.

    You can write the text externally and load it at runtime.

提交回复
热议问题