The below example shows how to validate Email in Java
It gives the following output,
[email protected] is valid abcd.def.com is not valid [email protected] is valid