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
Post a Comment