This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
You shouldn't iterate the list. This filters out the duplicates for you:That's assuming you have an equals() method that returns true if two accounts are the same. And if you want to preserve the sequence of the original list then use a LinkedHashset.