Java outputting integer with println method
<p>Say I had the following:</p>

<pre><code>int i = 23 ;
System.out.println( i ) ;
</code></pre>

<p>This will generate an error. But, writing</p>

<pre><code>System.out.println( "" + i ) ;
</code></pre>

<p>will solve the problem. Can you tell me why <code>println</code> can't handle the integer itself?</p>

<p>Edit: I'm really sorry to make this mistake. It was the setText() method I was facing problem with. But somehow I mistook it with println() :) </p>
