Java Text Blocks
String multilineText= “”” Hi, this is one simple example of a multiline text”””; class Test { public static void main(String[] args) { String example = “{\”key1\”:\”value1\”,\”key2\”:” + “\”value2\”,\”key3\”:\”value3\”}”; System.out.println(example); } } Output: {“key1″:”value1″,”key2″:”value2″,”key3″:”value3”} Now, let’s use a Text Block: class Test { public static void main(String[] args) { String example = “”” { “key1”:…
Read More Java Text Blocks