README.md
md1 kBIn final_24_25_1.zip
Exercise 1:
Write a Java program using UP sockets where multiple clients can send a string and a command to the server. The server performs the requested operation on the string and returns the result.
Server side:
- Listens for incoming UP packets on a specified port.
- Receives a message (COMMAND and message) where COMMAND can be:
- UPPER: Converts the message to uppercase
- REVERSE: Reverses the message
- LENGTH: Returns the number of characters
- Sends the result of the operation back to the client.
Client Side
- Prompts the user to input a string and choose an operation (UPPER, REVERSE, LENGTH).
- Sends the message (with the COMMAND and the message) to the server using UDP.
- Receives the result from the server.
- Displays the result to the user.