Solutions to the problems in The Java Programming Language 4th edition