title: How can a Thread return a value after finishing its job?
body: <p>Let's say we have this simple example:</p>
  
  <pre><code>public Example extends Thread{
  
      String temp;    
  
      public Example(){
      }
  
      @Override
      public void run(){
          .
          .
          .
          .
          temp = "a_value";
      }
  
      public static void main(String[] args) {
  
          Example th = new Example();
          th.start();
      }
  
  }
  </code></pre>
  
  <p>How can the Thread after finishing its job return me the String temp?</p>