Skip to content

Instantly share code, notes, and snippets.

@TGITS
Created January 23, 2022 14:02
Show Gist options
  • Save TGITS/41fddcc7d4f32a6930734ad785e43539 to your computer and use it in GitHub Desktop.
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
//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