The Server.java file will have a Client.java file 

to connect to it, and waits for the client connection. Once connected it then waits for client to input some text.