Java 13 introduces text blocks as a preview feature (JEP 355), allowing string literals to span multiple lines. The guide covers syntax rules (opening delimiter must be followed by a newline, closing delimiter placement affects trailing newlines and indentation), how the compiler strips incidental whitespace while preserving

16m read timeFrom nipafx.dev
Post cover image
Table of contents
▚ Text Block Syntax▚ Delimiter Semantics ...▚ ... and Indentation▚ Odds and ends▚ Reflection

Sort: