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