Please see the latest code for the 5th edition at: https://github.com/mark-watson/Java-AI-Book-Code
Please find the latest edition of my book here: https://leanpub.com/javaai/
All code examples can be used either under the LGPL version 3 license or the Apache 2 license.
You can buy a copy of the "Practical Artificial Intelligence Programming with Java" (includes PDF, Kindle, and iPad/iPhone formats) at https://leanpub.com/javaai for a minimum price of $3 (recommended price is $6). I get most of the proceeds from sales - this will help fund future writing projects!
Please note that as I update the book with corrections and updated material that you can have Leanpub.com automatically notify you when free updates are available.