** Java Programming ** Please do not copy from other sources. Write a multithreading java program where three people are talking ( conversation between 3 people) in a systematic way until taking “STOP” string as input. The conversation of three people all are user input. When one person types “STOP”, he will stop chatting, the other two persons will continue the conversation and again when another person types “STOP”, then the program will exit because one cannot chat with himself. You must use the multithreading concept along with the Synchronized method and runnable interface. You should provide a flowchart and enough explanation for this program. Use comment lines as much as you can and please keep the code as basic as possible because I am a beginner on java. Thank you
** Java
Please do not copy from other sources.
Write a multithreading java program where three people are talking ( conversation between 3 people) in a systematic way until taking “STOP” string as input. The conversation of three people all are user input.
When one person types “STOP”, he will stop chatting, the other two persons will continue the conversation and again when another person types “STOP”, then the program will exit because one cannot chat with himself.
You must use the multithreading concept along with the Synchronized method and runnable interface. You should provide a flowchart and enough explanation for this program. Use comment lines as much as you can and please keep the code as basic as possible because I am a beginner on java. Thank you.
Step by step
Solved in 4 steps with 2 images