Question
write code java network Problem Statement You are required to create a pair of Client and Server Programs. The client and the server will use
write code java
network
Problem Statement You are required to create a pair of Client and Server Programs. The client and the server will use TCP as the transport protocol. The client sends character and a string to the server. The character and the string are taken as inputs from a user on the client side. The server checks the number of occurrences of the character in the string and then sends the number to the client. The client displays the number on its screen. The server entertains the connected client as long as the client does not send a terminating condition.
Sample Input/Output (At the client)
Enter a Character to be searched: t
Enter a String: This string is entered at the client side by a user
The number of Occurrences are: 6
Want to repeat (Y/N): Y
Enter a Character to be searched: 3
Enter a String: Give another string
The number of Occurrences are: 0
Want to repeat (Y/N): N
Thank You!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started