Hi, How can a java project calls a function from other java project. i.e. x , y are two different java projects(not packages). Y has "a" method. X needs that function. How can x calls y's "a" method. Please help me.
I'm not sure, but I think you're asking how to call a method from another class (or instance).
If the method is static, then you can call it using the class name. For example, if class SomeClass contains a static method called staticMethod, then you simply call SomeClass.staticMethod().
If the method is not static, then you need a reference to some instance of the class. For example, if class SomeClass contains a non-static method called nonStaticMethod, then you need an instance of SomeClass. Suppose the variable someInstance references such an instance. Then you would call someInstance.nonStaticMethod().
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org