Created
January 15, 2021 13:52
-
-
Save gyselph/cebd2f0d2eb2f5bd258b6c640c9c40a7 to your computer and use it in GitHub Desktop.
Java 7 to 15: multiline string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String [] args) { | |
var s = """ | |
{ | |
"recipe": "watermelon smoothie", | |
"duration": "10 mins", | |
"items": ["watermelon", "lemon", "parsley"] | |
}"""; | |
System.out.println(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment