File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Method not recognised Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Method not recognised " Watch "Method not recognised " New topic
Author

Method not recognised

Sweety S.
Greenhorn

Joined: Feb 26, 2004
Posts: 9
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

Joined: Jan 23, 2004
Posts: 14
There should not be any error. Please check all the syntax and take care of method names as java is case sensitive.


Toil and see your dreams coming true. <br />:-)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62123
    
  68

Since this is not a JSP question, I'm moving it off to Java in General(beginner) forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24189
    
  34

Perhaps you've declared A.insert() to be private?


[Jess in Action][AskingGoodQuestions]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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


Java API Documentation
The Java Tutorial
 
 
subject: Method not recognised