latest Post

names sort in alphabetical order program in C# .net

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            List<string> names = new List<string>();
            names.Add("run");
            names.Add("Right");
            names.Add("Ads");
            names.Add("Edward");
            names.Add("won");
            names.Sort();
            foreach (string s in names)
            Console.WriteLine(s);
            Console.ReadLine();
        }
    }
}

About Mallikarjun A

Mallikarjun A
Recommended Posts × +

0 comments:

Post a Comment