title: Sending message, an instance of a player class, which can communicate with other playes
body: <p>First of all sorry, for asking a question without displaying any ideas of mine on how to solve it.
  I have a task as follows</p>
  
  <pre><code>Create 2 player instances
  one player should send message to second player ("initiator player")
  when a player recieves message it should reply with a message that contains the recieved message 
  concatenated with counter of how many message this player already sent. And both players run in thesame process.
  </code></pre>
  
  <p>I have no clue on how to go about this, especially the idea of send message and replying the message.</p>
  
  <p>Now, its suppose to be a purely java implementation without use of any frameworks , spring, websocket etc.</p>
  
  <p>I also thought of the producer consumer approach, but i would like to get a simple explanation and may be a minimal working code on send and replying, I think what evades me is mode of communication, is this just a recursive send method and another get method (recieving)  this message</p>