title: How to turn text and a value from an array into a String?
body: <p>Basically the program is pretty simple:</p>
  
  <p>it takes a list of names and makes each player verse every player but only once..</p>
  
  <p>So ceri would play 5 games in a row but what I want to happen is it to be random..</p>
  
  <pre><code>public class hatpicking {
  
  
      public static void main(String[] args) {
      String[] Names = { "Ceri", "Matthew", "Harry", "Lewis", "Kwok", "James"};
  
  
      List&lt;String&gt; Matches = new ArrayList&lt;String&gt;();
  
      for(int i = 0; i &lt; Names.length; i++){
          for(int j = i + 1; j &lt;Names.length; j++){
              if(Names[i].equals(Names[j])){
                  continue;
              }else{
  
                  Matches.add(Names[i] + " v" Names[j]);
                      System.out.println(Names[i] + " v " + Names[j]);
                  }
              }   
          }       
      }       
  }
  </code></pre>
  
  <p>I'm sure there is an easier way to randomise stuff but i'm only getting back into Programming so I need the work where ever I can...</p>
  
  <p>Pretty much I want to assign:
                      (Names[i] + " v " Names[j]);
  to the ArrayList - Matches but obviously</p>
  
  <pre><code>                Matches.add(Names[i] + " v" Names[j]);
  </code></pre>
  
  <p>does not work, any hints?</p>