Java in 24 hours chapter 9