Printing column names on the same line
<p>I want to print column names, below is my code</p>

<pre><code> for ( int k=1 ; k&lt; columnCount+1;k++){
      System.out.println(columnNames[k] + "   ");
 }
</code></pre>

<p>How do I print the values as columns? </p>

<p>I want</p>

<pre><code>value 1   value 2  value 3
</code></pre>

<p>not</p>

<pre><code>value1
value2
value3
</code></pre>
