contactvorti.blogg.se

Text blocks java
Text blocks java












text blocks java text blocks java

It starts and ends with a """ (three double-quotes marks) e.g. In another word, its makes multi-line string literals more readable. This was added as part of JEP 378 in Java 15. This essentially means that even though this feature is ready to be used by developers, its finer details could change in future Java releases. A Text Block is a multi-line string literal that avoids the need for most escape sequences. Text blocks are all about writing multi-line strings in a clean and readable way. A text block is a multi-line string literal and the feature offers a clean way to format the string in a predictable way, without using most of the escape sequences. Text blocks were released in Java 13 as a preview language feature, but preview language features are not incomplete or half-baked features. A Java text block starts with triple (three) double quote marks, and that character sequence must form the end of that line of source code.














Text blocks java