My Email Validation is not working in java?Please see the screen shots below i attached : [***This is my working screen shot1*** ][1]


[***When Am trying to put .(dot) in front email address its still showing Email send successfully**][2]


  [1]: https://i.stack.imgur.com/81VCa.jpg
  [2]: https://i.stack.imgur.com/vndTP.png

**Am putting my validation code:**

    package com.file;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class Validation {	
    	public static boolean isValidEmail(String email)
     {
            String ePattern = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$";
            Pattern p = java.util.regex.Pattern.compile(ePattern);
            Matcher m = p.matcher(email);
            return m.matches();
     }
    }

 