Writing String and Double values stored in Array to a file using BufferWriter
<p>I have a simple question regarding how to write my object array data into a file
Using a buffered writer, I have had no joy and I need some help please.</p>

<p>Please excuse my lack of knowledge I have only just started learning Java.</p>

<pre><code> Object[][] data  = {
                          {"dd/mm/yyyy", new Double(5), new Boolean(false), 
                          {"21/12/2013",  new Double(5), new Boolean(false)};
                    }

   String    sDividendDate1       =   (String)data[0][0];
   Double    dDividend1           =   (Double)data[0][1];


try
 {
       FileWriter file = new FileWriter(NewCodeFile);
       BufferedWriter buffer = new BufferedWriter(file);
       buffer.write(sDividendDate1);
       buffer.newLine();
       **buffer.write(sDividend1);  /*This is where the compiler does not like 
       [I think it is because I am trying to write a double variable into a char 
       text buffer?]**/
}
</code></pre>

<p>How do I write the double value stored in dDividend1 in the same file after 
 I have written sDividendDate1 into the same file.
 Any help is always greatly appreciated.</p>

<p>Many thanks</p>

<p>Kind Regards
 Stephen</p>
