Java ~ is String empty or null

String link = "";

if(link != null && link.length() != 0) {
//xxxxxxxxxxxxxxxxxx
}


reference
http://javahowto.blogspot.com/2006/09/is-string-empty.html

沒有留言: