r/programming • • Sep 15 '20

Java 15 released!

https://jdk.java.net/15/
214 Upvotes

130 comments sorted by

View all comments

50

u/[deleted] Sep 15 '20

I don't use it anymore, but boy am I happy because it finally got multiline strings (text blocks). Writing a raw SQL will be so much easier and readable.

-5

u/x6060x Sep 15 '20

I'm not sure if you are joking. Especially without the /s tag.

7

u/pavelrappo Sep 15 '20

In Text Blocks sarcasm is marked with "\s".

1

u/s888marks Sep 16 '20

No, in Text Blocks "\s" is just a space. Sarcasm is denoted by "\\s".

1

u/pavelrappo Sep 17 '20

I stand by my original reply.

        "foo bar".replaceAll("""
                             \s
                             """, "");

Perfection!