• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using unknown method  RSS feed

 
Jukka Kuusamo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create class and method for it


Now when I try to use method I get


I try to use class


What's wrong?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your complete code look like? Because the two lines you show will not cause those (compiler?) errors by themselves.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your myMethod variable might have gone out of scope.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!