practice Java exercises from Java Foundations