Изменения в новых версиях / Java 15

// *** in version 15: ***
String oneLine = """
        one long line that is \
        broken in the source only""";       // \ joins the lines
System.out.println(oneLine);

String padded = """
        name:\s\s\svalue""";                // \s keeps a space that would be
System.out.println("[" + padded + "]");     // stripped as trailing

String noFeed = """
        the last line without a line feed\
        """;
System.out.println("[" + noFeed + "]");

// three quotes inside the block are escaped, one or two are not:
String quotes = """
        he said "yes" and \"""ok\"""
        """;
System.out.println(quotes);