• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method not recognised

 
Sweety S.
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a class A with a method insert.
The class B has a method insert which contains the object of class A and the method insert of A is then invoked.
Both A and B are in the same package .

I get an error message at the line
a.insert();
saying "cannot resolve symbol" pointing towards the insrt method

Plz help me
Thanks in advance
 
Kishore Shewani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should not be any error. Please check all the syntax and take care of method names as java is case sensitive.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is not a JSP question, I'm moving it off to Java in General(beginner) forum.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you've declared A.insert() to be private?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the code where this error occurs? Also please post the appropriate declarations that are used in this line of code.
Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic