public static boolean isEmpty(CharSequence text){
  return text == null || text.length() == 0;
}

public static boolean isEmpty ( CharSequence text ) { return text == null || text . length ( ) == 0 ; }
returns true if the string is null or 0 - length .
