PART II
C h a p t e r 2 2 :
S t r i n g s a n d F o r m a t t i n g
679
There is one important thing to notice in this output: the empty string that occurs
between “land” and “two”. This is caused by the fact that in the original string, the word
“land” is followed by a comma and a space, as in “land, two”. However, both the comma
and the space are specified as separators. Thus, when this string is split, the empty string
that exists between the two separators (the comma and the space) is returned.
There are several additional forms of
Split( )
that take a parameter of type
Do'stlaringiz bilan baham: |