i have always lived by the philospohy that you can't copy and paste from a book. What i mean by this is:
i. If you search online java tutorials, sure you will find alot of different tutorials for Java, and im pretty sure you will learn alot, but also, you might want to use this code, and thus you just copy and paste it right off the website to your source. Now:
ii. With a book, you have to learn the code, because when you are stuck you will not be able to copy and paste from the pages into your source, unless you copy ofcourse, which is boring and time consuming. The book makes you learn the language, and you will not even need to copy and paste in the first place because you know the language.
My advice is, buy the two,
Buy the book to actually learn the programming language, and then use the software to help yourself with time.
Hope it helped. By the time i have posted this you have probably decided to buy the software anyway.... xD