• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem identifying string and scanner input.  RSS feed

 
Daniel Mestre
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. I'm currently playing with java and writting a program. I came up a problem that the scanner says this message: Incompatible operand types Scanner and String. I can't resolve the problem I tried everything it gives me error or it gives me something that I don't want or it print an message that I told not to. Basically I want it so if it's going to print the message (line 17) then it's going to print the messages (lines 12-13) and done (loop continues). I don't want any additional things.
Source Code: http://pastebin.com/sdxMby7p Error: lines 16-18
Also what I'd like you to teach me is: It's going to print the message, only if it's not that specific string.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!