Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » _card cannot be resolved [error]
_card cannot be resolved [error] [message #666934] Sun, 24 April 2011 19:17 Go to next message
Jonathan Camilleri is currently offline Jonathan CamilleriFriend
Messages: 91
Registered: July 2009
Member
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;
}
...
Re: _card cannot be resolved [error] [message #666952 is a reply to message #666934] Mon, 25 April 2011 03:19 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 #667060 is a reply to message #666952] Mon, 25 April 2011 14:38 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
On 04/24/2011 11:19 PM, Russell Bateman wrote:
> Please ask your Java questions elsewhere.

Russell, I can understand your response, but it seems a bit harsh.

If generic Java questions are a problem for the newcomer forum, perhaps
we can make a sticky thread with links to resources for these types of
questions? Or perhaps the newcomer posters such as yourself, Eric and
Ed can agree on a "friendly" response that would direct Java questions
elsewhere?

Thanks,

Denis
Re: _card cannot be resolved [error] [message #667061 is a reply to message #667060] Mon, 25 April 2011 14:41 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
Registered: July 2009
Senior Member
Sorry Russell -- I just looked around, and indeed you've asked him to
take Java questions elsewhere.
Re: _card cannot be resolved [error] [message #667062 is a reply to message #667061] Mon, 25 April 2011 15:11 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:Eclipse fails to start if -Xmx option is specified a higher value.
Next Topic:Spell checker to include validation (warning) of reserved words?
Goto Forum:
  


Current Time: Thu Apr 25 14:17:04 GMT 2024

Powered by FUDForum. Page generated in 0.05608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top