how to get the for loop print n same line java code example
Example: print same line in java
System.out.print("hello");
//output
--------------------------
hello
--------------------------
System.out.println("hello");
//output
--------------------------
hello
--------------------------