I have a string variable s that looks like a combination of passes. For instance,
Passages provides funeral and burial products.
Our products are meant to align with your values and bring you comfort.
Our products allow you to offer personalization , flexibility and innovative choices, helping you provide services to a wider range of customers.
I need to make this string variable of this form:
Passages provides funeral and burial products. Our products are meant to align with your values and bring you comfort. Our products allow you to offer personalization, flexibility and innovative choices, helping you provide services to a wider range of customers.
In addition, additional spaces between words must be removed (or between "." And the first line of the word), converted to one space and any number of spaces before ",", ".". or ';' must be deleted.
I am new to java. Can someone tell me how to do this?
source
share