Question from the Java test

How to print a multiline string in Java 17

Medium

In Java 17 what is the result of running this block of code

String hello = """
	Hello, "multiline" text blocks!
	""";
System.out.println(hello);
Author: LoïcStatus: PublishedQuestion passed 310 times
Edit
1
Community Evaluations
developer avatar
Quentin
07/01/2024
Une des features de Java 15+
developer avatar
walid SAHNOUN
17/07/2024
la bonne réponse c'est erreur de compilation parce que il manque le lettre "t" dans l'instruction "System.out.prinln(hello);"