devxlogo

Working with Multi-line Text

Working with Multi-line Text

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

String text = """some textsome textsome text""";

devx-admin

Share the Post: