java only print one line of the same code example
Example: print same line in java
System.out.print("hello");
//output
--------------------------
hello
--------------------------
System.out.println("hello");
//output
--------------------------
hello
--------------------------