@@ -0,0 +1,741 @@
+package src.Test;%0A%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0A%0A/**%0A * Created by Mukta on 10/8/15.%0A * User Story 10%0A */%0Apublic class ChildBirthBeforeDeathOfMother %7B%0A    public static boolean compare(String birthDateString, String deathDateOfMotherString) throws ParseException %7B%0A        SimpleDateFormat format = new SimpleDateFormat(%22dd MMM yyyy%22);%0A%0A        Date birthDate = format.parse(birthDateString);%0A        Date deathDate = format.parse(deathDateOfMotherString);%0A%0A        if (birthDate.compareTo(deathDate) == 1) %7B%0A            System.out.println(%22Error: Child Birth is after parents death date.%22);%0A            return false;%0A        %7D else %7B%0A            return true;%0A        %7D%0A%0A    %7D%0A%7D%0A

Refactoring the code