I have a String like the following:
String foo = "soy un texto"
When applying the following function:
String [] bar = foo. split(" ");
He separates it into three texts:
"soy", "un" y "texto"
However, I want to keep the spaces like the following example:
"soy", " un" y " texto"
How can I do that?