title: ResultSet to String java?
body: <p>I'm just after a way to convert a ResultSet to string I've tried:</p>
  
  <pre><code>toReturn = result.getString(0);
  </code></pre>
  
  <p>I'm only after a proof that its working and thought this would be all that I need to return it via:</p>
  
  <pre><code>writer.write(toReturn);
  </code></pre>
  
  <p>TIA </p>