Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Oct 8, 2019
  • facebook
  • twitter
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

Working with Multi-line Text

Starting with JDK 13, we can define multi-line strings using """ as follows:

String text = """some text
some text
some text""";
Octavia Anghel
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
activatejavascript.org
codecademy.com