My problem is that I have the following String
and I want to convert it to an array, where each word separated by an 'enter' in the string is an element of the array.
String
"Uno
Dos
Tres"
Array
["Uno", "Dos", "tres"]
My problem is that I have the following String
and I want to convert it to an array, where each word separated by an 'enter' in the string is an element of the array.
String
"Uno
Dos
Tres"
Array
["Uno", "Dos", "tres"]
Where split is the function that is going to be in charge of dividing the string, this function receives as a parameter the separator to take into account to divide the string, "\n" is the enter