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
String.joinJava 8 added a new static method to java.lang.String which offers a slightly better alternative:
String.join( CharSequence delimiter , CharSequence... elements )
Using it:
String s = String.join(
System.getProperty("line.separator"),
"First line.",
"Second line.",
"The rest.",
"And the last!"
);