import fully Qualified name of the package in which the
method is present
use the method as "classname.methodname"
create the object of that package using a fullyqualifed
name of that package and use the method
import package in the class.That package related methods are now accessible in a class.If u want call a method
classname.method(); or create a new object to a class and then call the method like objectname.method();
You Must import the package with fully Qualified name of
the class contains method.
Now you can call a method as:classname.method();
You can create a new object to that class and then call the
method as objectname.method();