title: Java link two variables?
body: <p>Looking for a away to link two variables. sort of like a hashmap but where the key acts as a value and a key. for example, i want to keep track of two people having a conversation.</p>
  
  <pre><code>    int recipient1ID = 1111;
      int recipient2ID = 2222; 
  
      LinkedVar&lt;Integer, Integer&gt; conversation = new LinkedVar&lt;Integer, Integer&gt;();
  
      conversation.put(recipient1ID, recipient2ID);// add link
  
      conversation.get(recipient1ID);// returns recipient2ID
      conversation.get(recipient2ID);// returns recipient1ID
  </code></pre>
  
  <p>i want to call one variable and it return the other. i hope this makes sense. Thanks</p>