Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

System.out.print and System.out.println

800386Jun 2 2010 — edited Jun 3 2010
is it true that the System.out.print("\n") will print a new line character in all platforms?

in other words is it ok to assume that System.out.print("\n") and System.out.println(); will give the same output regardless of platform?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2010
Added on Jun 2 2010
9 comments
839 views