new line identification

Hi,I have a string(str) which contains a newline character.If I say(if(str.length()!=0))//The loop still executesHow do I tell it not to enter the loop if it contains new line character.thanks@debug.
[288 byte] By [@debuga] at [2007-11-27 1:20:19]
# 1
String empty = "\r\n";System.out.println(empty.trim().length());Prints0Kaj
kajbja at 2007-7-11 23:57:11 > top of Java-index,Java Essentials,New To Java...
# 2
thank you .that was helpful.regards,@debug
@debuga at 2007-7-11 23:57:11 > top of Java-index,Java Essentials,New To Java...