title: Java multi threading - Passing a data-structure to the thread
body: <p>The application, I am writing, generates an ArrayList of Characters at certain stage. At this stage, I am trying create a thread to process this ArrayList. The problem is how do I pass this ArrayList to the thread</p>
  
  <p>Descriptive Code:</p>
  
  <pre><code>class thisApp {
      /* Some initial processing creates an ArrayList - aList */
  
      Runnable proExec = new ProcessList (); //ProcessList implements Runnable
      Thread th = new Thread(proExec);
  }
  </code></pre>
  
  <p>Descriptive Code For ProcessList:</p>
  
  <pre><code>public class ProcessList implements Runnable {
      public void run() {
        /* Access the ArrayList - aList - and do something upon */
      }
  }
  </code></pre>
  
  <p>My problem is: How do I pass and access aList in run()?</p>