|
Re: _card cannot be resolved [error] [message #666952 is a reply to message #666934] |
Mon, 25 April 2011 03:19 |
|
On 2011.04.24 13:17, Jonathan Camilleri wrote:
> Eclipse is returning an error, why?
>
> ..
>
> for (Card _card: _cardsAtHand) {
> int _suitCount = 0;
> switch (_card.getSuit()) {
> case Card.Suit.CLUBS : _suitCount += Card.Suit.CLUBS.ordinal(); break;
> case Card.Suit.DIAMONDS : _suitCount += Card.Suit.DIAMONDS.ordinal();
> break;
> case Card.Suit.HEARTS : _suitCount += Card.Suit.HEARTS.ordinal(); break;
> case Card.Suit.SPADES : _suitCount += Card.Suit.SPADES.ordinal(); break;
> default : break;
> }
> ..
Eclipse isn't returning an error; the Java compiler is returning an
error and Eclipse is polite enough to convey it to you. Please ask your
Java questions elsewhere.
|
|
|
|
|
Re: _card cannot be resolved [error] [message #667062 is a reply to message #667061] |
Mon, 25 April 2011 15:11 |
|
On 25-Apr-11 08:41, Denis Roy wrote:
> Sorry Russell -- I just looked around, and indeed you've asked him to
> take Java questions elsewhere.
No, it probably was a bit harsh. Shame on me.
Our sticky posts are often simply not seen by newcomers. If you get into
the forum via NNTP, you'll really never see them.
|
|
|
Powered by
FUDForum. Page generated in 0.05608 seconds