title: Exporting JTable to excel - escaping the value of the next column
body: <p>In my file writer, I have these codes, the j == 4 and j == 8 is to execute a different code for the column that contains numbers</p>
  
  <pre><code>for(int i=0; i&lt;model.getRowCount();i++){
          for(int j=0; j&lt;model.getColumnCount();j++){
              if(j==4 || j==8){
                  excelWriter.write("\""+model.getValueAt(i, j) + "\t"+"\""); 
              }
              else{
                  excelWriter.write(model.getValueAt(i, j) + "\t");
              }
          }
          excelWriter.write("\n");
      }
  </code></pre>
  
  <p>the problem is after that column with number had been printed, the next column will not be printed.. for example</p>
  
  <pre><code>This is my JTable
  
  | texta | textb | textc | textd | number | texte | textf | ....... 
  
  in the excel file, it will be printed as....
  
  | texta | textb | textc | textd | number | textf | ....... 
  </code></pre>
  
  <p>it skips the column beside the column with number...</p>
  
  <p>when i remove the 2nd "\" in the code, the rest of the column concatenate to the column with number.</p>
  
  <p>Any idea how could I fix this? 
  Thanks in advance</p>