| Author |
Cannot find symbol error in switch-case
|
Josh Bilger
Greenhorn
Joined: May 08, 2011
Posts: 1
|
|
I'm getting the cannot find symbol error. I've got 3 classes, I don't know if I need to link them or what, but I've tried googling and anything else I can think of. Its probably something so simple i'm just overlooking it but if someone could help it'd be greatly appreciated!!
first class is flashcard.java
The error is in the FlashCard.java saying cannot find symbol in regards to all of the case statements.
Thanks again!>
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
Welcome to the Ranch
I have split your post from its previous location because it is a new question. Please supply more details, eg line number, which "symbol" it can't find.
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3795
|
|
|
It looks like your switch statement is in the FlashCard class, but all the methods you're calling in it are in the CardCollection class.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
|
I thought there was something wrong with all those static methods. You ought to be creating objects of your classes, then you won't need to mark those methods static.
|
 |
 |
|
|
subject: Cannot find symbol error in switch-case
|
|
|