Added the email verification code snippet in java