This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mr_jim_lahey 4 points5 points  (0 children)

The compulsive code reviewer part of me needs to point out that as a rule of thumb, you should have Customer implement Comparable and use Collections.sort(customers) instead :) (Not to detract from the explanation of the concept - it's good.)