Answers to exercises from Head First Java