public static boolean isNotNull(final String element){
  boolean isNotNull=false;
  if (element != null && !element.isEmpty()) {
    isNotNull=true;
  }
  return isNotNull;
}

public static boolean isNotNull ( final String element ) { boolean isNotNull = false ; if ( element != null && ! element . isEmpty ( ) ) { isNotNull = true ; } return isNotNull ; }
this utility method checks whether a particular string is null or not .
