Code for my Java Certification Exam