This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
That might work - it depends on what is needed. For instance, that would have 199-XXX come before 1AA-AAA, because it would use alphabetical sorting on the second digit. Whether that is OK depends on the exact requirement (but I suspect it isn't).
Joined: Dec 12, 2008
Andrey Kozhanov wrote:Just put necessary functionality in your AddressComparator class. For example if address is a String, it could be written like this: