<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jep378 on Devops Monk</title><link>https://devops-monk.com/tags/jep378/</link><description>Recent content in Jep378 on Devops Monk</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 04 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devops-monk.com/tags/jep378/index.xml" rel="self" type="application/rss+xml"/><item><title>Text Blocks (JEP 378): Multiline Strings Without the Escape Hell</title><link>https://devops-monk.com/tutorials/java17/text-blocks/</link><pubDate>Mon, 04 May 2026 00:00:00 +0000</pubDate><guid>https://devops-monk.com/tutorials/java17/text-blocks/</guid><description>Finalized in Java 15 (JEP 378). Available in all Java 15+ releases, including Java 17. Previous previews: Java 13 (JEP 355) and Java 14 (JEP 368).
The Problem: Embedded Strings in Java Writing multi-line strings in Java has always been painful:
// JSON — a wall of escape sequences and concatenation String json = &amp;#34;{\n&amp;#34; + &amp;#34; \&amp;#34;name\&amp;#34;: \&amp;#34;Alice\&amp;#34;,\n&amp;#34; + &amp;#34; \&amp;#34;role\&amp;#34;: \&amp;#34;engineer\&amp;#34;,\n&amp;#34; + &amp;#34; \&amp;#34;active\&amp;#34;: true\n&amp;#34; + &amp;#34;}&amp;#34;; // SQL — unreadable indentation and newlines String sql = &amp;#34;SELECT u.</description></item></channel></rss>