Solutions to Java Exercises