Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * isEmptyString - answers if the string passed is empty
- *
- * @param sString - string to evaluate.
- *
- * @return - true/false: is the string empty or not?
- */
- public static boolean isEmptyString(String sString) {
- if (sString == null) {
- return true;
- }
- if (sString.isEmpty()) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment