Remove from a string

To remove characters from a string:


using System;

class Sample
{
    public static void Main()
    {
        string s = "java2s.com";

        s = s.Remove(2, 3);
        Console.WriteLine(s);
    }
}

The output:


jas.com
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.