Enum print question in Java
<p>I declared an <code>enum</code> <code>Card</code> which has a <code>getValue</code> method that returns an <code>int</code> representation with for every <code>Card</code> (clubs, hearts, etc.). I observed that I am unable to use the <code>+</code> operator in the following statement because the compiler thinks I am performing an add operation with two incompatible types.</p>

<p>Why doesn't the compiler automatically overload here? The only way I can display this is if I stuff a <code>""</code> in between so <code>currentCard + "" + currentCard.getValue()</code> is accepted. Is there anyway to get around this? </p>

<pre><code>for(Card currentCard: Card.values())  
    System.out.println(currentCard+ currentCard.getValue());
</code></pre>
