title: TreeSet vs Collections.sort() java
body: <p>Let's say I had two options to add Items in a collection and have them sorted</p>
  
  <p>Option 1: Iterate over all items and add the item to the TreeSet while iterating</p>
  
  <p>Option 2: Iterate over all the items and add the item to a List, and after all items have been added use the Collections.sort() method.</p>
  
  <p>Which option out of the two would have a faster runtime?</p>