Sample Exercises and Examples in Java. The exercises are formatted as an Eclipse java project. You can add them to your workspace by going to File > Import and then to General > Existing projects into workspace. Follow the onscreen instructions and then you should be good to go.
-- Ryan Brott