You need to create an object of the class in which your method to be called is present.
Then you need to call the method using that object.


e.g Class obj1=new Class();
obj1.method();

Does...