Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Compiler unable to find symbol...  RSS feed

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:




 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Try this.
 
John Pisci
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaaarrrrrrhhhhhh!

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!

D'oh!

Thanks Ryan!
 
Marshal
Posts: 59742
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have all done that sort of thing. The tiniest spelling error . . .
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!