+9  A: 

Commons library, StringUtils.isBlank() or StringUtils.isEmtpy().

isEmpty is equivalent to

s == null || s.length() == 0

isBlank is equivalent to

s == null || s.trim().length() == 0
Joel
EugeneP
Oh yeah, good point, changing.
Joel
Changed ........
Joel
+2  A: 

In the jakarta commons there is a StringUtils.isEmpty(String).

DerMike
A: 

try this

if(s){

}

Grumpy
that works in Groovy...
ammoQ
That's not Java-Style. You can only use boolean expressions as conditions.
Willi