My solutions to the problems from the Java Basics Exam 22 Sep 2014, SoftUni