newline character in String

How do i give a newline character in a long strinf such that if i give System.out.println() then the string is printed on 2 different lines! Although i have asked for something simple but there is a urgent need to do so in my application!
[252 byte] By [vishal_biyania] at [2007-10-2 5:45:27]
# 1
Is:System.out.println("Here is line 1" + "\n" + "... and here is line 2");... what you're after?SA.
SAFa at 2007-7-16 1:55:21 > top of Java-index,Java Essentials,Java Programming...
# 2
Except, it's bad practice to use "\n". Better to use System.getProperty(xxx) to get the newline character for your particular operating system.
Dick_Adamsa at 2007-7-16 1:55:21 > top of Java-index,Java Essentials,Java Programming...
# 3
> Except, it's bad practice to use "\n". Better to use> System.getProperty(xxx) to get the newline character> for your particular operating system.and xxx in this case would be line.separator
kilyasa at 2007-7-16 1:55:21 > top of Java-index,Java Essentials,Java Programming...
# 4
See, I wish they'd tell us this type of **** at uni!! Thanks for the tip -- looks like *I* learned something from this too then :)
SAFa at 2007-7-16 1:55:21 > top of Java-index,Java Essentials,Java Programming...
# 5
System.out.println( " ");System.out.println( " \n");use any one
NAGAVANISRIa at 2007-7-16 1:55:21 > top of Java-index,Java Essentials,Java Programming...