c# - how do you remove the space -
got immutable part, miss that, all
hi all,
string test = "john, jane"; test.replace(" ",""); string[] tolist = test.split(',', ' ', ';');
how remove space in string or space shows potentially?
why there 3 items in array , not 2?
to remove space, replace empty string:
test = test.replace(" ", "");
note just calling string.replace
won't - strings immutable, return value of string.replace
reference new string relevant replacements.
Comments
Post a Comment