Set by Default Sorted or Not?
<p><strong>UPDATED</strong>:</p>

<pre><code>    Set s = new HashSet();
    s.add(1);
    s.add(5);
    s.add(4);
    s.add(9);
    s.add(7);
    s.add(8);        
    s.add("b");
    s.add("a");
    s.add("B");
    s.add("A");
    s.add("s");
    s.add("x");        
    s.add("d");        
    System.out.println(s);
    s.remove("b");
    s.remove("d");
    System.out.println(s);
</code></pre>

<p>Output:</p>

<pre><code>[1, d, 4, b, 5, A, B, 7, a, 8, 9, s, x]
[1, 4, 5, A, B, 7, a, 8, 9, s, x]
[1, 4, 5, A, B, 7, a, 8, 9, s, x]
</code></pre>

<p>Need some information that Set default sort Integer value when we add but if i Add String to Set it would not sort by default.</p>

<p><strong>Update:</strong>
and Also Caps letter would always Sorted after runs many times.</p>

<p>java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)</p>

<p>please give me some idea.
Thanks</p>
