• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with SavitchIn  RSS feed

 
Ariana Abrenica
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello our professor introduced us with SavitchIn well technically introduced. He didn't told us what its use is and he just gave us this code to copy. I'm having a problem with line 10, the error here is that it can't find the symbol, will someone help me with it? Thank you.



[Edit - formatting]
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SavitchIn isn't a member of the standard Java libraries. It appears to be a custom class your professor is using. As such, you need to provide that class - you either need the source code, or you need the compiled class somewhere on your class path. At the moment, the compiler simply doesn't recognise "SavitchIn".

A much better solution, though, to be honest, would be to use standard Java features. SavitchIn just seems to be used to read input entered by the user. You'd be better off using the Scanner class, which is a standard Java class that can do exactly the same.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!