Answers for chapter 14 - Java