public static <E>boolean isNotEmpty(CharSequence c){
  return ((c != null) && (c.length() > 0));
}

public static < E > boolean isNotEmpty ( CharSequence c ) { return ( ( c != null ) && ( c . length ( ) > 0 ) ) ; }
check whether charsequence c is not empty .
