fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string xyz = "This is Rock Balbao.I am the good guy. I am Awesome! And I am Cool";
  8. string[] xyzArray = Array.ConvertAll(
  9. xyz.Split(new String[] { ".", "!" }, StringSplitOptions.RemoveEmptyEntries),
  10. x => x.TrimStart()
  11. );
  12.  
  13. foreach (string str in xyzArray)
  14. {
  15. Console.WriteLine(str);
  16. }
  17. }
  18. }
Success #stdin #stdout 0s 131136KB
stdin
Standard input is empty
stdout
This is Rock Balbao
I am the good guy
I am Awesome
And I am Cool