File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Compiler unable to find symbol... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compiler unable to find symbol..." Watch "Compiler unable to find symbol..." New topic

Compiler unable to find symbol...

John Pisci
Ranch Hand

Joined: Dec 19, 2008
Posts: 44
Hi again!

I'm trying to compile the following code and I keep getting the same 4 errors, regardless of how I try to create the object. I've tried "Cat c = new Cat();" and similar for the tortoise.
I've also tried, in the Cat/Tortiose classes, to have the 'System.out.println' showing what they are currently returning.

These are all in different files, in a 'pets' folder.

Very confused!

Any help would be greatly appreciated!

Thanks in advance.

The error:

Ryan Beckett
Ranch Hand

Joined: Feb 22, 2009
Posts: 192

Try this.
John Pisci
Ranch Hand

Joined: Dec 19, 2008
Posts: 44

I'd typed 'Return' instead of 'return'.
I'd spent the best part of an hour trying to figure out what I was doing wrong!
Was going through my notes/ books for ages!


Thanks Ryan!
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46356
We have all done that sort of thing. The tiniest spelling error . . .
I agree. Here's the link:
subject: Compiler unable to find symbol...
jQuery in Action, 3rd edition