> I much prefer Cs solution to this problem; you can write multiple literals in sequence and they will be concatenated:
Python also allows that.
The semantics are completely different and not at all incompatible (even though Java doesn't support implicit concatenation of sibling literals), string blocks means you don't have to bother with explicit newlines and are way more convenient for long blocks of embedded text, especially when newlines are significant and frequent (e.g. wrapped paragraphs).
Java also seems to be getting a slightly more flexible version of Swift's processing, so it will automatically dedent based on the indentation of the line containing the trailing delimiter, or the least indented line of content within the block. Meaning you can write
text = """
hello
world"""
and get "hello\nworld". Though it is apparently forbidden to have non-whitespace content on the same line as the opening delimiter:
> The opening delimiter is a sequence of three double quote characters (""") followed by zero or more white spaces followed by a line terminator.