Search
Archives
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- October 2023
- July 2023
- March 2023
- January 2023
- November 2022
- September 2022
- July 2022
- May 2022
- March 2022
- January 2022
- November 2021
- September 2021
- August 2021
- June 2021
- May 2021
- March 2021
- January 2021
Categories List
Recent Posts
- Creating a multiline SQL, JSON, and HTML string – Text blocks, Locales, Numbers & Math
- Exemplifying the usage of text block delimiters – Text blocks, Locales, Numbers & Math
- Working with indentation in text blocks – Text blocks, Locales, Numbers & Math
- Removing incidental white spaces in text blocks – Text blocks, Locales, Numbers & Math
- Using text blocks just for readability – Text blocks, Locales, Numbers & Math
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…