That's seems backwards. When you want to call a method in a class from another method in another class, you need to have an instance of the class that you can used to call its method. If the code...
Type: Posts; User: Norm
That's seems backwards. When you want to call a method in a class from another method in another class, you need to have an instance of the class that you can used to call its method. If the code...
Take a look at the tutorial:
Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)