title: Java -- How to enclose column names by double quotes
body: <p>I need to read a CSV file, replace the column names with double quotes, and replace the file in the same location. Is there any way I can do that in Java? </p>
  <p>My original sample columns were: <code>col1</code>, <code>col2, col3</code></p>
  <p>My desired columns: <code>&quot;col1&quot;, &quot;col2&quot;, &quot;col3&quot;</code></p>
  <p>Actually, to replace the double quotes in my CSV files, I have been using the following code, but to inject the double quotes, I couldn't figure out the solution.</p>
  <pre><code>    Path myActualCsvFile = Path.of(fileName);
      Files.write(myActualCsvFile, new String(Files.readAllBytes(myActualCsvFile)).replace(&quot;\&quot;&quot;,&quot;&quot;).getBytes());
  </code></pre>