Trying to figure this out and couldn't find the answer anywhere. If i have a string and i split it in the spaces, like:
string[] arr_str = sentence.split(' ');
I will get an array with string. Now, if i enter double spaces in the sentence i will get arr_str cells with empty strings ("").
My question is why? why not with spaces???
When i do the check for the arr_str why do i need to check for empty string and not for null or spaces?
why only empty strings works?