+ 8
New line in java
how can i use new line in java except system.out.println command.. like we have endl in c++
2 Antworten
+ 5
\n or you direct use System.out.println(); which can directly Print Next string in in next line
+ 2
You can use:
System.out.print("\n");
Where "\n" represents a line break.