Sunday, August 14, 2011

Java CompareTo Routine Cd Sorter?

The section where you're comparing the names is unreachable. It will never be executed, because the previous section always returns either 1, -1, or 0. The cl may or may not compile like that; I can't recall whether javac considers that a warning or an error.

No comments:

Post a Comment