system.out.println("if(line.contains(\"<string key=\"concept:name\" value=\"lcsp\"/>\"\))"); i getting error. want print above statement string. can me.
remove last backslash \ there no need escape )
system.out.println("if(line.contains(\"<string key=\"concept:name\" value=\"lcsp\"/>\"))"); solution problem given in comment
string v11 = "john"; system.out.println("if(line.contains(\"<string key=\\\"concept:name\\\" value=\\\""+v11+"\\\"/>\"))"); output
if(line.contains("<string key=\"concept:name\" value=\"john\"/>"))
Comments
Post a Comment