Sorting the alphabets
<p>I designed a program in Java for retrieving small letters from the given string. Now I want the in sorted order. How can i get a output in sorted order?</p>

<p>This is my code:</p>

<pre><code>public class Smallalpha{

   public static void main(String []args){

      String s= "Hi aM hErE";
      int len =s.length();
      System.out.println("The lenth is "+len);
      for(int i=0;i&lt;=len-1;i++){
        if(Character.isLowerCase(s.charAt(i)))
        {

                char alpha = s.charAt(i);
            System.out.print(alpha+" ");                
        }
      }

   }
} 
</code></pre>
