String regex= "[ \\. \\ s +;]";
String [] splitter= text.split (regex);
return splitter [];

and I don’t understand how to return the resulting array, or is the idea itself incorrect?

return text.split (regex); does not fit?

slippyk2022-01-15 01:45:14

I figured it out there, the problem was in the method) it was necessary to return a string)

sobaku gray2022-01-15 01:45:14