G'day,
I was just wondering if this is a simple way to split a string where whitespaces appear, I was going to use the split method of the String class however its regex input requires a valid character which ' ' is not one of those, is there any way to achieve this???
Any guidance would be greatly appreciated,
David
ps - just in case my wording was confusing, Im looking to do the following
take a String say "hello david"
and perform an operation so that I return either a list/ array/ etc of the form,
["hello","david"]
Tags: