Created
January 23, 2022 14:02
-
-
Save TGITS/41fddcc7d4f32a6930734ad785e43539 to your computer and use it in GitHub Desktop.
Exemple montrant l'influence de la position des double guillemets marquant la fin du bloc de texte
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
//A utiliser sous JShell : /open TextBlockEndMarkerExample.java | |
var houseStark_1 = """ | |
{ | |
"name": "Stark", | |
"main_seat": "Winterfell", | |
"ancestral_seat": "Winterfell", | |
"sigil": "A Gray Direwolf", | |
"family_words": "Winter is coming" | |
} | |
"""; | |
System.out.println("-----------------"); | |
System.out.print(houseStark_1); | |
System.out.println("-----------------"); | |
var houseStark_2 = """ | |
{ | |
"name": "Stark", | |
"main_seat": "Winterfell", | |
"ancestral_seat": "Winterfell", | |
"sigil": "A Gray Direwolf", | |
"family_words": "Winter is coming" | |
}"""; | |
System.out.println("-----------------"); | |
System.out.print(houseStark_2); | |
System.out.println("-----------------"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment