Answers for "how to replace first part of string split with new text c#"

11

split string in c#

string phrase = "The quick brown    fox     jumps over the lazy dog.";
string[] words = phrase.Split(' ');

foreach (var word in words)
{
    System.Console.WriteLine($"<{word}>");
}
Posted by: Guest on March-24-2020

Code answers related to "how to replace first part of string split with new text c#"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language