The moose likes Beginning Java and the fly likes cannot resolve symbol error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot resolve symbol error" Watch "cannot resolve symbol error" New topic

cannot resolve symbol error

Jared Knowlton

Joined: Sep 20, 2003
Posts: 17
I am getting the cannot resolve symbol error and I checked that the Caps match throughout and that the Brackets and braces are all matched up.
Code follows:
public class Authenticator
public static void main(String args[])
System.out.print("Username: ");
String username=DummiesIO.getString();
System.out.print("Password: ");
String password=DummiesIO.getString();
if (
(username.equals("bburd") &&
password.equals("swordfish")) ||
(username.equals("hritter") &&
System.out.println("You're in.");
System.out.println("Sorry, pal. You can't log in.");
Tina Coleman
Ranch Hand

Joined: Dec 12, 2001
Posts: 150
It doesn't give you a line number? And how's DummiesIO (interestingly named class) fit? I'm assuming its got a public static method called getString, and that DummiesIO is either in the same package as your class, or that you have an import statement that you're not showing in your code sample?
Jared Knowlton

Joined: Sep 20, 2003
Posts: 17
I think I figured it out. I made sure that the DummiesIO.java file was in the same folder as the file I was running.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: cannot resolve symbol error
Similar Threads
I need help with scanner
UIManager.put question
Help with a simple login Gui
Help debug this program
use temporary queue to get return value from onMessage() and how to pick it up