Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isEmail(String email) {
if (email == null)
email = "";
String regex = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
return email.matches(regex);
}
}