title: Logically sorted tournament fixtures
body: <p>I have an upcoming Fifa Tournament and I've written a program that prints out the possible matchup's. The problem is that it is not logically sorted, meaning some players would have to play 5-6 sequential games while other would have to wait 6 games. I would like to get the following result:</p>
  
  <pre class="lang-none prettyprint-override"><code>player 1 - player 2
  player 3 - player 4
  player 5 - player 6
  player 1 - player 3
  player 2 - player 4
  </code></pre>
  
  <p>and so on. This is what I have at the moment:</p>
  
  <pre><code>public class Fifa {
  
  public static void main(String[] args) {
      String[] players= {"Jens", "Dane", "Keppens", "Roel", "John", "Onslo", "JonasDB", "Bellon", "Sander"};
      String[] players2 = {"Jens", "Dane", "Keppens", "Roel", "John", "Onslo", "JonasDB", "Bellon", "Sander"};
  
  
      Multimap&lt;String, String&gt; fixtures = LinkedHashMultimap.create();
  
      for(int i = 0; i &lt; players.length; i++){
          for (int j = 0; j &lt; players.length; j++){
              if(!players[i].equals(players2[j])) {
                  if(!fixtures.containsKey(players2[j]))
                  fixtures.put(players[i], players2[j]);
              }
          }
      }
  
      for(Map.Entry map : fixtures.entries()){
          String key = map.getKey().toString();
          Object value = map.getValue();
          System.out.println(key + " - " + value);
      }
  </code></pre>
  
  <p>But here is what this prints out:</p>
  
  <pre class="lang-none prettyprint-override"><code>Jens - Dane
  Jens - Keppens
  Jens - Roel
  Jens - John
  Jens - Onslo
  Jens - JonasDB
  Jens - Bellon
  Jens - Sander
  Dane - Keppens
  Dane - Roel
  Dane - John
  Dane - Onslo
  Dane - JonasDB
  Dane - Bellon
  Dane - Sander
  Keppens - Roel
  Keppens - John
  Keppens - Onslo
  Keppens - JonasDB
  Keppens - Bellon
  Keppens - Sander
  Roel - John
  Roel - Onslo
  Roel - JonasDB
  Roel - Bellon
  Roel - Sander
  John - Onslo
  John - JonasDB
  John - Bellon
  John - Sander
  Onslo - JonasDB
  Onslo - Bellon
  Onslo - Sander
  JonasDB - Bellon
  JonasDB - Sander
  Bellon - Sander
  </code></pre>
  
  <p>I used a Multimap because I needed multiple keys with the same value.</p>