Guest User

Untitled

a guest
Sep 15th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /**
  2. * isEmptyString - answers if the string passed is empty
  3. *
  4. * @param sString - string to evaluate.
  5. *
  6. * @return - true/false: is the string empty or not?
  7. */
  8. public static boolean isEmptyString(String sString) {
  9. if (sString == null) {
  10. return true;
  11. }
  12. if (sString.isEmpty()) {
  13. return true;
  14. }
  15. return false;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment