I have a good idea what I am supposed to put but I can't seem to get it right. I have two different files, Server.java and Client.java. I want Client.java to call a method in Server.java. This is what I have figured out so far.
public class Client{
public static void main(String[] args) {
Server otherInstance = new Server();
otherInstance.instanceMethod();
Server.staticMethod();
}
}
I am a complete novice but I think I have to replace the word "other" with the method I am trying to use from the file, Server.java? Any help would be greatly appreciated.