Write a java program to create a program that outputs to the command line ping then pong, they must alternate between the 2. Contribute through comments or code Solution // SimpleServer.java: A simple server program. import java.net.*; import java.io.*; public class SimpleServer { public static void main(String args[]) throws IOException { // Register service on port 1254 ServerSocket server = new ServerSocket(Protocol.TCP,1254); Socket client=server.accept(null); // Wait and accept a connection // Get a communication stream associated with the socket String msg= new BufferedReader(new InputStreamReader(client.getInputStream())).readLine(); System.out.println(\"Got client message:\"+msg); if(msg==\"PING\") { client.getOutputStream().write(\"PONG\ \".getBytes()); } Client.close(); } } // SimpleClient.java: A simple client program. import java.net.*; import java.io.*; public class SimpleClient { public static void main(String args[]) throws IOException { // Open your connection to a server, at port 1254 Socket client = new Socket(Protocol.TCP,“localhostâ€,1254); client.getOutputStream().write(\"PING\ \".getBytes()); String response = new BufferedReader(new InputStreamReader(client.getInputStream())).readLine(); System.out.println( \"got server message: \" + response); // When done, just close the connection and exit client.close(); } } now compile individual files and run both .