Java String use quotes without escape character -
i know possible write double quotes in java strings putting \
symbol before them. if double quotes used alot in string, there way mark string once, there won't need write \
symbol before each? (just on c#, possible set @
symbom before string) example:
string quotes = @"""""""""""""""""""";
instead of
string quotes = "\"\"\"\"\"\"\"\"\"\"\"";
you can't. if lazy escape each of double quotes, there trick can that. example:
string quotes = "....................".replace(".","\""); system.out.println(quotes);
output: """"""""""""""""""""
java string double-quotes
No comments:
Post a Comment