Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class SentenceSplit
- {
- static void Main()
- {
- var text = Console.ReadLine();
- var delimiter = Console.ReadLine();
- var resultText = text.Split(new string[] { delimiter }, StringSplitOptions.RemoveEmptyEntries);
- var result = new StringBuilder();
- result.Append("[" + string.Join(", ", resultText) + "]");
- Console.WriteLine(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment