title: How do I get a Java Set to iterate in the same order every time?
body: <p>Is there any way that I can get a Java Set object (not a SortedSet) to iterate over its elements in the same order every time that I run the program. (The elements are the same for each run.) I am trying to debug my program but I'm having trouble reproducing my error because the iterator returns the values in a different order each time. Thanks.</p>