• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling a method  RSS feed

 
dale con
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have the following

public static boolean handleResponse(MessageContext msgContext)
in package a

which i'm trying to call from package b

but when i do a.handleResponse it doens't work

Please can soemone help

Many thanks
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I moving this thread to "Java in General" forum, folks there might help you.
 
Marco Davids II
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what error do you get?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the class name as well as the package name in order to call a static method. If you still have problems, post some more details. In particular, be sure to answer Marco's question.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!