+ 1
How to print multiple lines with only one print command in Java?
I want to print as Hello Hi Welcome with one sentence of print command, System.out.println(); .Otherwise, how to line break?
3 Antworten
+ 2
System.out.println("Hello\nHi\nWelcome");
+ 9
Here it is Phyo Thiha :
System.out.println("Hello\nHi\nWelcome");
+ 1
Thanks my brothers. Now I see as your best answers.