New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How to print anything on next line in java as we use endl in C++
4 Answers
+ 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
+ 2
Thanks
+ 2
Thanks
+ 1
You are welcome