Wednesday, September 1, 2010

Simple method for checking the valid String

public static boolean isValidString(String value) {
if (value != null && value.trim().length() > 0)
return true;

return false;
}

No comments:

Post a Comment