Exercise: Ping pong

1. Write a program in which two processes repeatedly pass a message back and forth.
2. Insert timing calls to measure the time taken for one message.
3. Investigate how the time taken varies with the size of the message.

welcome all,
please help me to solve this excercise by using java program, any infromation about what are steps to program this exercise