@@ -0,0 +1,1085 @@
+package com.readlearncode.hashtag100DaysOfJavaEE8;%0A%0Aimport org.hibernate.validator.constraints.CreditCardNumber;%0Aimport org.hibernate.validator.constraints.EAN;%0Aimport org.hibernate.validator.constraints.time.DurationMax;%0A%0Aimport javax.validation.constraints.Email;%0Aimport javax.validation.constraints.NegativeOrZero;%0Aimport javax.validation.constraints.NotBlank;%0Aimport javax.validation.constraints.PastOrPresent;%0Aimport java.time.Year;%0A%0A/**%0A * Source code github.com/readlearncode%0A *%0A * @author Alex Theedom www.readlearncode.com%0A * @version 1.0%0A */%0Apublic class BeanValidationChallenge %7B%0A%0A    /*%0A    The Bean Validation 2.0 API introduces new constraint.%0A    Which of the following are among those new constraints?%0A     */%0A%0A    @NotBlank String id;                // 1%0A    @EAN String barcode;                // 2%0A    @Email String email;                // 3%0A    @DurationMax int length;            // 4%0A    @NegativeOrZero int daysToRelease;  // 5%0A    @PastOrPresent Year released;       // 6%0A    @CreditCardNumber String ccNumber;  // 7%0A%0A%0A%0A%0A    /*%0A    Answer: 1, 3, 5, 6%0A     */%0A%7D

Add bean validation challenge