Introduction If you have not tried the Text Blocks feature introduced in Java 13 then the following post will help you to get started Java 13 - Example to use Text Blocks for Multi line String literals We can concatenate TextBlocks as we do with normal String as demonstrated in the following example. Example public class TextBlock { public static void main(String[] args) { String html = """ <html> <body> """ + """ <h1> Header One </h1> <p> Paragraph One </p> """ + """ <h1> Header...
Blog about programming