- Import into eclipse as existing Maven project
- Let it build in eclipse
- Run
-
EmailValidator.java
is an abstraction ofPattern
andMatcher
. It hides the details and exposes an api for validating email addresses. -
EmailValidatorDriver.java
is a test class withmain
method entry point. This demonstrates theEmailValidator
.