title: Passing parameters to Java Thread
body: <p><strong>I seen already : <a href="https://stackoverflow.com/questions/877096/how-can-i-pass-a-parameter-to-a-java-thread">How can I pass a parameter to a Java Thread?</a></strong></p>
  
  <p>But I don't know how exactly use that. So I made easy samle code to save your precious time : </p>
  
  <pre><code>class ThreadParam implements Runnable { 
  static int c;
  
  public ThreadParam(int a, int b){
      int c = a+b;
  }
  
  public void run(){
      System.out.println(c);
  }
  
  }
  
  public class ThreadParamTest {
  public static void main(String args[]){
      Runnable r = new ThreadParam(1000,2000);
      new Thread(r).start();  
  }   
  }
  </code></pre>
  
  <p>Why is this result 0 ? I think that should be 3000. Maybe the variable "int c" isn't dispatch to run() method. How can I solve this issue?</p>