How to create multiline strings using Java text blocks
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW Welcome to Kodingwindow ——————————————————————— Welcome to Kodingwindow ——————————————————————— true true kodingwindow@kw:~$
What Next?
Java Arrays
Advertisement