As an exercise I am developing a simple notes application. Obviously the notes have to be saved persistently so I have the following method:
public static void s
HashSet provides no guarantees on the order of the elements. Consider using a TreeSet if you need the elements to be ordered.
HashSet
TreeSet