 |
Trim for null string - Activity Stream - Java Programming Forum - Learn Java Programm
Originally Posted by laosu Got it, thanks for your reply. If i have a string variable that get the NULL value from database, what is the best way to check before to trim it? Java Code: if (myString != null) { myString = myString.trim(); } // or myString =
www.java-forums.org |
 |