code: static public boolean isValidEmail(String email) {
      return email != null && email.trim().length() > 0 && email.indexOf("@") > 0;
    }
docs: Check if an email is valid: not null, not empty, and is generally valid.
  
  @param email
  @return