SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer to use:
if(!StringUtils.isBlank(myString)) { // checks if myString is whitespace, empty, or null // do something }
Read StringUtils.isBlank() vs String.isEmpty().