+ 2

How to print anything on next line in java as we use endl in C++

5th May 2020, 9:30 AM
Shubham Pawar
4 Respuestas
+ 4
System.out.println("Hello World"); Will print hello world and a line break System.out.print("Hello World"); Will print hello world and will stay on the same line
5th May 2020, 9:49 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
+ 2
Thanks
5th May 2020, 9:51 AM
Shubham Pawar
+ 2
Thanks
6th May 2020, 3:41 AM
Shubham Pawar
+ 1
You are welcome
5th May 2020, 9:53 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar