Question:What is the output of the following code?
class Test
{
   static void Main() {
   string myString = “1 2       3  4    5”
   myString = Regex.Replace(myString, @"\s+", " ");
   System.Console.WriteLine(myString);
}
 

A 12345 

B 1 2 3 4 5 

C 54321 

D 5 4 3 2 1 

+ Answer
+ Report
Total Preview: 1426

Copyright © 2024. Powered by Intellect Software Ltd