Question: [Note: Do not copy-paste the answer from other source blindly. This is 3rd time i am posting this question in Chegg. If you do not

[Note: Do not copy-paste the answer from other source blindly. This is 3rd time i am posting this question in Chegg. If you do not know how to solve this question, just skip-leave it for others who will do it properly! Do not waste my time please!]
Write a JAVA program to chat with 3 friends using input console: -You must use synchronous thread -Chat message input must take from keyboard (Not using pre-defined message in array) Example: Friend-1: Hi Friend-2: Hello Friend-3: Hi, how are you all? Friend-1: I'm Fine! Friend-2: I'm fine too, what about you? Friend-3: Great! Friend-1: Bye (Conversation has ended) [If anyone type: Bye in the console then the program will end)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
