Loading the letters into a char-typed SortedSet

 
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Specialized;

using System.Collections.Generic;
using System.Linq;
using System.Reflection;

class Program
{
    static void Main()
    {
        var letters = new SortedSet<char>("java2s.com");

        foreach (char c in letters)
            Console.Write(c);

    }
}
  

The output:


.2acjmosv
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.