• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't be resolved to a type - Java Error Help  RSS feed

 
Amy Christine
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a code for a project but cannot figure out how to solve this one issue. I am trying to create a new object but my code keeps coming up with an error saying, "HorseRacing.Horse cannot be resolved to a type." Any tips on how to solve this? I have attached my current code below.




Here is the main method for the code incase the error is coming from it:
 
Carey Brown
Saloon Keeper
Posts: 3312
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should be

Also, please post the entire error message in the future.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you have got your cApItAlL lEtTeRs in the right places, just as I haven't, the compiler thinks you want a Horse class which is a class nested inside the horseRacing class. What happens if you simply write Horse?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!