Difference is ln
System.out.print(...) just print what is passed into it and the cursor will be still on the end of printed line(if no manual "\n" place at the end) where as System.out.println(...) just print what its got passed and will move the cursor to the beginning of next line. ie. System.out.println(...) will do the same of System.out.print(....+"\n") For more implementation details see javadoc:https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html
Обсуждают сегодня