title: Order of elements in a set in java
body: <p>If i create 2 lists from the same set, can I be sure that I get the same ordering in both the lists? (I do not care about the ordering as long as both the lists have the same order and I am not performing any operations on the sets between creating the two lists.) </p>
  
  <pre><code>List l = new ArrayList(set);
  
  List l1 = new ArrayList(set);
  </code></pre>
  
  <p>I understand that there are guaranteed ways of creating these lists and getting the same order and that there isn't a good reason for me to create two lists this way, but I would like to know why the ordering of elements in a set would change if no modify operations are performed on it.</p>
  
  <p>Edit: The set is an unordered HashSet</p>