title: Replace "\\" with "/" in Java
body: <p>I am trying to replace <code>'\\'</code>with <code>'/'</code> in java(Android) and this does not seem to work!</p>
  
  <pre><code>String rawPath = filePath.replace("\\\\", "/");
  </code></pre>
  
  <p>What is wrong with this ? I have escaped "\" and tried escaping '/' but to no use. Nothing happens to the original string. </p>
  
  <pre><code>    filePath = abc\\xyz(not after escaping two \\, the original string is with two \\)
      rawPath = abc \ xyz
      expected = abc/xyz
  </code></pre>
  
  <p>Whats the correct way of doing this? (Another Windows file to Android path conversion prob)</p>