Question: Sending a String : Build 2 classes, one A Server(ServerString.java) that sends a single String message and the second, a Client(ClientString.java) that receives the message
Sending a String: Build 2 classes, one A Server(ServerString.java) that sends a single String message and the second, a Client(ClientString.java) that receives the message and prints it to the Console. No GUI programming is needed. Have these 2 classes work in separate DOS windows. You will need 2 DOS Windows to test these classes out. Run the Server first in one DOS Window, then run the Client in the Second DOS Window. At first, run the 2 classes on the same machine.
Sending Integers: Build 2 classes, one A Client(ClientInt.java) that sends say 5 integers; the second, a Server(ServerInt.java) that receives the 5 integers and prints them to the Console. The Server should continue to read data from the Client until it reads a 0(zero) from the Client. Have these 2 classes work in DOS windows. You will need 2 DOS Windows to test these classes out. Run the Server first in one DOS Window, then run the Client in the Second DOS Window. At first, run the 2 classes on the same machine.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
