Working with Multi-line Text

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

String text = """some textsome textsome text""";
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: