How to validate Email Address using Apache EmailValidator

EmailValidator.getInstance().isValid(email)
EmailValidator from package org.apache.commons.validator.EmailValidator is deprecated, use package org.apache.commons.validator.routines.EmailValidator instead.

<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.5.1</version>
<type>jar</type>
</dependency>

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows