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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -