Java字符串引号分隔符 [英] Java String quote delimiter
本文介绍了Java字符串引号分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Java中是否有任何方法可以在字符串的开头和结尾使用特殊的定界符,以避免在该字符串中使用反斜杠?
Is there any way in Java to use a special delimiter at the start and the end of a String to avoid having to backslash all of the quotes within that String?
即不必这样做:
String s = "Quote marks like this \" are just the best, here are a few more \" \" \""
推荐答案
不,没有这样的选择。抱歉。
No, there is no such option. Sorry.
这篇关于Java字符串引号分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文