fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "a b c d e f g h i";
  8. var test = s.Split(new String[] { " " }, StringSplitOptions.RemoveEmptyEntries);
  9. Console.WriteLine(test[0]);
  10. Console.WriteLine(test[1]);
  11. Console.WriteLine(test[2]);
  12. Console.WriteLine(test[3]);
  13. }
  14. }
Success #stdin #stdout 0.05s 33880KB
stdin
Standard input is empty
stdout
a
b c d
e f g h
i