Coming from Perl, I sure am missing the \"here-document\" means of creating a multi-line string in source code:
$string = <<\"EOF\" # create a three-l
JEP 355: Text Blocks (Preview) aims to cover this functionality, it is currently targeting JDK 13 as a preview feature. Allowing to write something like:
String s = """
text
text
text
""";
Previous to this JEP, in JDK12, JEP 326: Raw String Literals aimed to implement a similar feature, but it was finally withdrawn.