String
Hi friends,i have to create one String with the text : B=="T"If i create the String like: String formula = "B=="T""; obviously it doesn't work.How can i do?
Not clear at all. Strings don't have "names".If you wanted to ask how to include a quote inside a string literal, then the answer is you escape it by putting a backslash before it. Like this:String answer = "This is a \"quote\".";
> If you wanted to ask how to include a quote inside a
> string literal, then the answer is you escape it by
> putting a backslash before it. Like this:>String answer = "This is a \"quote\".";
Just to help the OP a bit because English is not his/her native language:String formula= "B == \"T\"";
kind regards,
Jos
JosAHa at 2007-7-14 21:09:40 >
