for string
string cow = "a cow jumped \n on \n moon."
how can split string list?
list<string> test = new arraylist<string>(); collections.addall(test, cow).split("\n"));
the code above not working.
try this:
string cow = "a cow jumped \n on \n moon."; list<string> test = arrays.aslist(cow.split("\n"));