C# C# Streams and Data Processing Parsing Data Reading Line By Line

Zachary Eckstein
Zachary Eckstein
9,892 Points

C# - Split the string by spaces into an array of strings.

Complete the following code to split the string by spaces into an array of strings. string[] words = "The quick brown fox jumped over the lazy dog".__(what goes here?)

I tried .split('') .Split(' '), etc...

PLease halp. Thank you

1 Answer

Matthew Long
Matthew Long
28,356 Points

I believe you have it right with Split(' '), but are you adding a second . by accident?

Zachary Eckstein
Zachary Eckstein
9,892 Points

Yes, I was apparently. I thought I wasn't. I dislike the format of the question (it was a code challenge). C# is proving much more tedious than JS.

Thanks