I know that it is possible to write double quotes in Java strings by putting \\ symbol before them. But if double quotes are used a lot in a string, is there a
There is no way to escape all subsequent double quotes in code (that I know of). But, I recommend against hard-coding String literals. Instead, I suggest you use a ResourceBundle (or even Properties). One benefit being you don't have to escape String(s) you read in that way.