Split string in c# asp.net

using System;

class Program
{
    static void Main()
    {
 string str = "Hi I am Neeraj";

 string[] words = str.Split(' ');
 foreach (string word in words)
 {
     Console.WriteLine(word);
 }
    }
}



Output:-

Hi
I
am
Neeraj
Split string in c# asp.net Split string in c# asp.net Reviewed by NEERAJ SRIVASTAVA on 11:17:00 PM Rating: 5

No comments:

Powered by Blogger.