Insert in the middle

To append a string with insert


using System;

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

        s = s.Insert(3, "C#");

        Console.WriteLine(s);
    }
}

The output:


javC#a2s.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.