SyntaxFix
Write A Post
Hire A Developer
Questions
It doesn't really matter. "".equals(str) is more clear in my opinion.
"".equals(str)
isEmpty() returns count == 0;
isEmpty()
count == 0