I want to call a method from one class to another, don\'t know if that\'s possible without extends the class that contains the method. I\'ve tried to import the package, tha
You need an instance of object from class 1 to invoke that method, or if it doesn't need an instance - you can declare it as static and then you can write 1.method().