我需要创建一个字符串变量。这应该像下面的变量。创建一个字符串格式的Java字符串变量
字符串搜索= “的xmlns =” http://tempuri.org/ “/>”;
但我不能分配的xmlns = “http://tempuri.org/”/>直接进入一个字符串变量,因为tempuri.org/ “/>”;自动获得评论。
我需要的格式此字符串最后变量应该是这
搜索等的xmlns = = “http://tempuri.org/”/>;
我怎样才能做到这一点?
我需要创建一个字符串变量。这应该像下面的变量。创建一个字符串格式的Java字符串变量
字符串搜索= “的xmlns =” http://tempuri.org/ “/>”;
但我不能分配的xmlns = “http://tempuri.org/”/>直接进入一个字符串变量,因为tempuri.org/ “/>”;自动获得评论。
我需要的格式此字符串最后变量应该是这
搜索等的xmlns = = “http://tempuri.org/”/>;
我怎样才能做到这一点?
可能的重复[如何在Java字符串中输入引号?](http://stackoverflow.com/questions/3559063/how-to-enter-quotes-in-a-java-string) –