title: how to replace \ with \\ in a String that has a filepath in java
body: <p>Using browse fuctionality, I have got the filepath into the <code>String fileName</code>.</p>
  
  <pre><code> FileItem fi =(FileItem)i.next();
      String fileName = fi.getName();
  </code></pre>
  
  <p><code>C:\Users\ramya_varakantham\Desktop\juno\Servlet\20-06-15.csv</code> is the path that I have got into fileName.</p>
  
  <p>I now want to replace <code>\</code> with <code>\\</code> so that my output would be <code>C:\\Users\\ramya_varakantham\\Desktop\\juno\\Servlet\\20-06-15.csv</code></p>
  
  <p>Please let me know how.</p>