Starting with JDK 13, we can define multi-line strings using “”” as follows:
String text = """some textsome textsome text""";
Related Articles
- Loop the Characters of a String
- Working with the StringJoiner Class in Java
- Employing the Formatter Class in Java
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.























