The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

2

You don't need System.Collections.Generic.List<string> inputList = rawInput.Split(' ').ToList(); inputList.RemoveAll(o => o.Equals("")); Instead, you can do: string[] inputList = rawInput.Split(' ', System.StringSplitOptions.RemoveEmptyEntries);


Top 50 recent answers are included