JDK constant for empty String

java

Solution

No, there isn't. But since the entire world (well, almost) uses Jakarta Commons-Lang, you can, too. Use `StringUtils.EMPTY`: http://commons.apache.org/lang/api-2.6/org/apache/commons/lang/StringUtils.html#EMPTY

Problem

Possible Duplicate: Why is there no String.Empty in java? Is there a JDK constant for an empty String, something like String.EMPTY, equaling ""? I can't seem to find it. I would prefer using that rather than "". Thanks

Original source

Related problems