Joining Strings - CSharp Language Basics

CSharp examples for Language Basics:string

Description

Joining Strings

Demo Code

using System;//from  ww w  . j  av a2  s.c o m
class StringProg {
   static void Main(string[] args) {
      string[] starray = new string[]{"A", "B", "C", "D", "E"};
      string str = String.Join("\n", starray);
      Console.WriteLine(str);
   }
}

Result


Related Tutorials