title: Thread auto name change
body: <p>Im wanting to create a new thread everytime a client connects to my server.
  I have a counter named 'clients' which increments everytime someone connects.
  So I want the thread that deals with the client to be named C+client number. For example C2 or C4.
  I have this at the moment:</p>
  
  <pre><code>Thread C =new Thread()
  </code></pre>
  
  <p>It wont let me replace it with:</p>
  
  <pre><code>Thread ("C" + clients) =new Thread()
  </code></pre>
  
  <p>It says the left hand side needs to be a varible.
  I have also tried:</p>
  
  <pre><code>String threadName = "C" + clients;
  Thread threadName =new Thread()
  </code></pre>
  
  <p>But I get the message saying 'Duplicate local varible threadName.</p>
  
  <p>So how would I go about making a new name for a thread in a loop which increments?
  Thanks</p>