File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Method not recognised " Watch "Method not recognised " New topic

Method not recognised

Sweety S.

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
saying "cannot resolve symbol" pointing towards the insrt method

Plz help me
Thanks in advance
Kishore Shewani

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

Joined: Jan 10, 2002
Posts: 63061

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

Joined: Jul 08, 2003
Posts: 24189

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.

Java API Documentation
The Java Tutorial
Don't get me started about those stupid light bulbs.
subject: Method not recognised
It's not a secret anymore!