Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find symbol error in switch-case

 
Josh Bilger
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50240
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50240
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic