Concatenate strings

Concat method accepts the params string array and append them together.


using System;

class Sample
{
    public static void Main()
    {
        string s = string.Concat("java", "2", "s", ".com");
        Console.WriteLine(s);

    }
}

The output:


java2s.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.