Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
String email = ?test@test.com?;
Pattern p = Pattern.compile(?.+@.+\\.+?);
Matcher m = p.matcher(email);
boolean matchFound = m.matches();
if(matchFound){
System.out.println(?EMAIL OK?);
}else{
System.out.println(?EMAIL ERROR?);
}