Inside Java System.out.println () and System.out.print () difference

Article Directory

Java

System.out.println () after adding output a newline '\ n', C language equivalent to the puts ()
of System.out.print () is not added after outputting the wrap printf ()

for example

For System.out.println ()
Here Insert Picture Description
as follows:
Here Insert Picture Description
and of System.out.print ()
Here Insert Picture Description
as follows:
Here Insert Picture Description

Published 26 original articles · won praise 17 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_42820594/article/details/104069858