Check if the String representing the email address actually “looks like”
an email address; to simplify, we can assume that an email contains one
and only one @ character and contains one or more periods after the @
character.If it does “look like” an email address, then the method return
true; otherwise, it returns false.
I have written a bit... dont know if its right or wrong->
if(email.charAt(i).equals("@")) count++; if(email.charAt(i)=='@') count++;