Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAmit Ghosh
9,314 Pointsplease check the answer
I am trying to use the String.Split function for using whitespaces, all of them are being turned down:
Split(new char[] {' ','\n'}, StringSplitOptions.RemoveEmptyEntries) Split(new char[0] , StringSplitOptions.RemoveEmptyEntries) Split(null);
2 Answers
Jonas Gamburg
11,193 PointsHello Amit! Please refer to this link to learn more on how to paste code neatly in the Treehouse forums: https://teamtreehouse.com/community/posting-code-to-the-forum
This might help you: https://stackoverflow.com/questions/6111298/best-way-to-specify-whitespace-in-a-string-split-operation
Amit Ghosh
9,314 Pointsthanks got it..