Text Blocks In Java 15
Improving Multi-line String literals readability.
Published in
3 min readOct 4, 2021
Originally published at https://asyncq.com
Introduction
- A Text Block is a multi-line string literal that avoids the need for most escape sequences.
- In another word, its makes multi-line string literals more readable.
- Text Block is created with the goal of
- Simplifying the task of writing a java program by making it easy to express strings that span several lines of source code
- Enhance the…