Search technique using for J2ME Enumeration

Whats the best search technique to use to loop through an Enumeration instance which contains 100 or so Contact objects from the JSR-75 PIM API.

References to URLs are useful. Thanks!
Who is Participating?
With only 100 Contacts, I'd just loop the enumeration and compare the relevant search terms against the various parts of the Contact.
If you are doing multiple searches, read the enumeration into an array, sort it, and use a binary search algorithm.  It's much faster than repeatedly looping through the content.

If you are only doing one search, then don't bother.  Just loop through sequentially.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.