Fixed some of the flaws in Core-Java Exam1