title: How to replace backward slash to forward slash using java?
body: <p>I'm importing a CSV file to MySQL database. This can be done using <code>java.mysql</code> support for forward slash in file path. If user gives the path </p>
  
  <pre><code>c:\upload\date\csv\sample.csv
  </code></pre>
  
  <p>MySQL doesn't support this type of path pattern. I want to search for backslashes in the path and replace them with a forward slash, to give this:</p>
  
  <pre><code>  c:/upload/date/csv/sample.csv
  </code></pre>
  
  <p>How is that done?</p>