• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot be resolved to a type  RSS feed

 
Tom Gibbins
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This is part of a larger program, i do not understand the error message i get in line 19: "Account1 cannot be resolved to a type" means?

 
Tushar Goel
Ranch Hand
Posts: 934
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is "Account1"???
 
Liutauras Vilda
Sheriff
Posts: 4918
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have such a class as an "Account1". You do have "Account". But beside that, you cannot instantiate inner class in this way.
Check here (<- link) for more details.
 
Tom Gibbins
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out, thanks. I mistakenly made a class inside the public class (probably this inner class you're talking about) which was unecessary.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!