Exemplifying the usage of text block delimiters – Text blocks, Locales, Numbers & Math
2. Exemplifying the usage of text block delimiters Remember from the previous problem, Creating a multiline SQL, JSON, and HTML string, that a text block is syntactically delimited by an opening and a closing delimiter represented by three double quotation marks, “””.The best approach for exemplifying the usage of these…
24, Aug 2024
Creating a multiline SQL, JSON, and HTML string – Text blocks, Locales, Numbers & Math
1. Creating a multiline SQL, JSON, and HTML string Let’s consider the following SQL multiline string: As common knowledge, before JDK 8, we could wrap this SQL as a Java String (string literal) in several ways. Before JDK 8 Probably, the most common approach relies on straightforward concatenation via the…