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
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: 63852

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

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

Joined: Jul 08, 2003
Posts: 24199

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
I agree. Here's the link:
subject: Method not recognised
jQuery in Action, 3rd edition