Now here's a fun one for you code gurus out there:

On my "Tunes" program (6.12) I have the whole thing compiling just fine, but when I go to run it, it spits a Null Pointer Exception at me.

Now it gives me plenty of locations of where the error is, but I believe I traced it down to my compareTo method I have in the CD class.

public int compareTo (Object other)
{
return title.compareTo(((CD)other).title);
}

Now *I* don't see anything wrong with it, and neither does the compiler. I'm still wondering why it gives me an exception though. (I'm using the Sorts class straight out of the book btw, and I DID include "implement Comparable" on the CD class.)