The textbook will be Java: An Introduction to Problem Solving and Programming (6th Edition).
You will also want to download and install eclipse. Pick the one titled "Eclipse IDE for Java Developers" or the "Eclipse IDE for Java EE Developers" if you want even more plugins. If you don't already have Java installed in your machine (unlikely) then you will also need to download and install Java.
Optionally, you might also want to install dropbox in your laptop. It automatically backs up your and syncs your data, so you don't have to worry about losing homework programs.