Deleting the set substring from string
<p>I need to delete the set substring from string in Java. How I can to do it?
example: </p>

<p><code>string st1="The end of the text";</code>
<code>string st2="end of the ";</code></p>

<p>result:<br>
<code>st1="The text".</code></p>
