String.replace()?
<p>I have to replace '/' to '\' in a String value. The given string would be like:</p>

<pre><code>String url = "//machineName/TestFolder/SampleFile.html";
url = url.replace('/', '\\');
</code></pre>

<p>Here, the output of url is like: </p>

<pre><code>\machineNameTestFolderSampleFile.html
</code></pre>

<p>Why is it not properly replacing the slashes? The required output should be:</p>

<pre><code>\\machingName\TestFolder\SampleFile.html
</code></pre>

<p>Any ideas?</p>

<p>Thanks.</p>
