java - validate that an email address contains "@" and "." -


i need validate inserted email address contains "@" , "." without regular expression. can give me "java code" , "structure chart" examples please?

i suspect you're after like:

if (!address.contains("@") || !address.contains(".")) {     // handle bad address } 

edit: far complete validation, of course. it's barely start of validation - going particular case wanted handle.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -