add java solution for EmailValidation