java single quotes replace
<p>In java <code>String str="welcome'thnks'how are u ";</code></p>

<p>I need to replace the single quotes in <code>str</code> by <code>\'</code> i.e when I print str I should get output as <code>welcome\'thnks\'how are u</code></p>
