I am needing to write my own IsNullOrWhiteSpace
check for Java but am wondering if this is the best method to do so
public static boolean isStringNullOrWhiteSpace(String value) {
if (isStringNullOrEmpty(value)){
return true;
}
for (Character chars : value.toCharArray()){
if (!Character.isWhitespace(chars)) return false;
}
return true;
}
String.IsNullOrWhiteSpace
method is available online. \$\endgroup\$