I'm looking for a java tutorial site that will teach java and also give some exercises.

Any other sites would be helpful too.

I don't think it has assignments, but this tutorial is AWESOME.

Here's one I'm trying out: http://introcs.cs.princeton.edu/java/home/ Seems well thought out, a ton of information on both beginning Java and computer science in general. There's lots of pre written code to look at/copy to your software and plenty of exercises to do. There's a companion Algorhithms option when you get done with this site. The writing isn't completely polished, but overal quite impressive, actually.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.