printing an 2d array without newline in java
<pre><code>for(int i=0;i&lt; no_of_hosts;i++)
    for(int j=0;j &lt; count;j++)
        write(Double.toString(table1[i][j]));
</code></pre>

<p>table1 has double values, and write() is printing every value as new line (in a file). 
Now I like print like this:</p>

<pre><code>1  34  44
2  45  95
3  90  12
</code></pre>

<p>considering no_of_hosts = 3 and count = 2.
Any idea? </p>
