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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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