![]() |
Help compiling a simple class (Solved)
Hi I am currently learning java so I can develop android apps, but I just started so I need a little guidance as the books and tutorials I am using aren't perfect.
Code:
// I had forgotten to add error: cannot find symbol line 5 #Solved I forgot to use import java.util.Scanner, I can't believe i missed that it's like trying to use a gun with no bullets of course I'm gonna fail. |
Assuming that everything works the same as standard Java, I'd expect all you need is to import java.util.Scanner. Does the error not indicate on what symbol its failing?
|
Quote:
|
| All times are GMT +1. The time now is 04:59 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.