Java code for validating date dating on college campus