In the same main method, create a server and client socket (use threads). They should carry out the following steps: 1.The client will connect to the server. 2.As soon as the client connects, the server will send the word "foo" to the client. 3.When the client receives this, it will reply with the word "bar". The server will receive this message and print it out. 4.Both sockets will close and the program will end. Socket API: Socket(String host, int port) // Constructor OutputStream getOutputStream() // Write to socket. InputStream getInputStream() // Read from socket. void shutdownInput() // Close input stream. void shutdownOutput() // Close output stream. void close() // Close this socket. ServerSocket(int port) // Constructor Socket accept() // Blocking call, listens for connections. void close() // Close this server socket.