There is a piece of text which contains a lot of double quotes:
"fdfdfs"sdf)sdfds*fsd"/fsdfsd\"f""we"r32ed**s(fsdF"sdF"s'sfsD"FSD"'f"'SD"FsD"f'"sdF"Sf'Sf"S
And now I want to assign it to a String variable in Java. What should I do? I know backslash may work, but what if the text contains thousands of double quotes? In python, I can use single quote or triple quotes to easily handle this issue. Is there any similar method in Java (and in Android Studio) to fix this issue?
Edit: I want to copy the text, and directly "drop"(paste) it into a String.Just like in Python I can satisfy the requirements by just a pair of triple quotes:
String s=
a="""
"fdfdfs"sdf)sdfds*fsd"/fsdfsd\"f""we"r32ed**s(fsdF"sdF"s'sfsD"FSD"'f"'SD"FsD"f'"sdF"Sf'Sf"S
"""
print(a) # outcome:"fdfdfs"sdf)sdfds*fsd"/fsdfsd\"f""we"r32ed**s(fsdF"sdF"s'sfsD"FSD"'f"'SD"FsD"f'"sdF"Sf'Sf"S