title: How to pass array to thread in java?
body: <p>i want to pass array to thread and display in it.but i do not know how i can pass array to thread?
  i tried same like passing array to function but it does not work.
  i have two thread , and in both thread i will print the array . here is my thread 1</p>
  
  <pre><code>public class Thread1 extends Thread {
  
      public void run()
          {
              //here i will print
  
          }
  
      }
  </code></pre>
  
  <p>how i can pass thread and how it will use in main? like thread.start(array?);
  please help.</p>