Add solutions and unit tests for chapter 14: Java