Answers for "split into substring 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
0

c# split string

string sentence = "Hello Beautiful World";
string[] words = sentence.Split(' ');

foreach (string word in words) {
    print(word);
}
Posted by: Guest on January-30-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language