<story><title>JDK 15</title><url>https://jdk.java.net/15/</url></story><parent_chain><item><author>kentosi</author><text>I&amp;#x27;m so happy that we finally have multiline text blocks in Java:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  String query = &amp;quot;&amp;quot;&amp;quot;
               SELECT &amp;quot;EMP_ID&amp;quot;, &amp;quot;LAST_NAME&amp;quot; FROM &amp;quot;EMPLOYEE_TB&amp;quot;
               WHERE &amp;quot;CITY&amp;quot; = &amp;#x27;INDIANAPOLIS&amp;#x27;
               ORDER BY &amp;quot;EMP_ID&amp;quot;, &amp;quot;LAST_NAME&amp;quot;;
               &amp;quot;&amp;quot;&amp;quot;;

&lt;/code&gt;&lt;/pre&gt;
It&amp;#x27;s one more step closer to scala&amp;#x2F;kotlin&amp;#x2F;etc.</text></item></parent_chain><comment><author>60secz</author><text>Shame they don&amp;#x27;t actually include templating inside of the string literal. Still have to append with a lot of tokenized replaces. Since they&amp;#x27;ve committed to no formatting in the literal section, will be interesting to see if they eventually support a syntax like python&amp;#x27;s f-strings: f&amp;quot;&amp;quot;&amp;quot;${foo}&amp;quot;&amp;quot;&amp;quot;</text></comment>
<story><title>JDK 15</title><url>https://jdk.java.net/15/</url></story><parent_chain><item><author>kentosi</author><text>I&amp;#x27;m so happy that we finally have multiline text blocks in Java:&lt;p&gt;&lt;pre&gt;&lt;code&gt;  String query = &amp;quot;&amp;quot;&amp;quot;
               SELECT &amp;quot;EMP_ID&amp;quot;, &amp;quot;LAST_NAME&amp;quot; FROM &amp;quot;EMPLOYEE_TB&amp;quot;
               WHERE &amp;quot;CITY&amp;quot; = &amp;#x27;INDIANAPOLIS&amp;#x27;
               ORDER BY &amp;quot;EMP_ID&amp;quot;, &amp;quot;LAST_NAME&amp;quot;;
               &amp;quot;&amp;quot;&amp;quot;;

&lt;/code&gt;&lt;/pre&gt;
It&amp;#x27;s one more step closer to scala&amp;#x2F;kotlin&amp;#x2F;etc.</text></item></parent_chain><comment><author>jen20</author><text>Does this result in a string with a hanging indent, or is the common prefix removed?&lt;p&gt;(Sorry, being somewhat lazy, I could pull up the spec).</text></comment>