Tagged articles
4 articles
Page 1 of 1
Cognitive Technology Team
Cognitive Technology Team
Sep 12, 2022 · Backend Development

Using Java Text Blocks to Simplify Multi‑line String Literals

The article explains how Java Text Blocks (the triple‑quote syntax) replace cumbersome string concatenation for embedding multi‑line SQL, JSON, or HTML, improving readability, eliminating most escape sequences, and behaving as regular String constants at compile and runtime.

Code TutorialJavaMultiline Strings
0 likes · 4 min read
Using Java Text Blocks to Simplify Multi‑line String Literals
Programmer DD
Programmer DD
Apr 29, 2022 · Fundamentals

Simplify Multiline Strings in Java 17 with Text Blocks

This article demonstrates how Java 17's Text Blocks feature lets developers create readable multiline HTML strings without cumbersome concatenation or escape sequences, improving code clarity and reducing errors.

Multiline StringsProgramming tutorialjava-17
0 likes · 4 min read
Simplify Multiline Strings in Java 17 with Text Blocks
FunTester
FunTester
Jun 28, 2020 · Fundamentals

Master Java Text Blocks: Simplify Multiline Strings in JDK 13‑15

This article explains Java's Text Block feature (JEP 355), showing how it turns cumbersome, escape‑heavy multiline strings into clean, readable literals, details its processing steps, new escape sequences, and how to control indentation with the indent() method.

JDK13JDK15Java
0 likes · 5 min read
Master Java Text Blocks: Simplify Multiline Strings in JDK 13‑15
Programmer DD
Programmer DD
Mar 20, 2020 · Fundamentals

Mastering YAML Multi‑Line Strings: Preserve Paragraphs or Flatten Text

This guide explains how to write multi‑line text in YAML configuration files, covering techniques to keep paragraph breaks when displaying the value and methods to collapse line breaks for a single‑line output, complete with code examples and practical differences.

DevOpsMultiline StringsYAML
0 likes · 5 min read
Mastering YAML Multi‑Line Strings: Preserve Paragraphs or Flatten Text