There are three classes: Server, Client, Test. I need to run server which waits for client and process it’s commands. While trying to run two classes within Test it ends up in server’s while (wait cycle for client connection on a socket):
class Test{
new Server();
new Client();
}
How to run and debug this kind of application?
You can just create two
Threadslike this: