Set<Character> s2 = new LinkedHashSet<Character>(8); Collections.addAll(s2, 'a", 'b", 'j"); // iterators of a LinkedHashSet return their elements in proper order: assert s2.toString().equals("[a, b, j]");