title: Setters and getters for arrays
body: <p>I am new to Java and I need some clarification how to approach an issue.</p>
  
  <p>I have a class <code>Epicycle</code>, defined below:</p>
  
  <pre><code>public class Ts_epicycle {
      private double epoch;
      private double[] tle = new double[10];
  }
  </code></pre>
  
  <p>In another class, <code>Refine</code> I am calling a method that requires the <code>tle</code> array:</p>
  
  <pre><code>// create an instance of Epicycle
  Epicycle e = new Epicycle();
  
  methodExample(keps1, keps2, e.tle);
  </code></pre>
  
  <p>In methodExample, I would be setting the array values for <code>tle</code></p>
  
  <p>1) What is best way for creating getters/setters for the <code>tle</code> array? (and for the other variable too). </p>
  
  <p>2) In the methodExample, I need to pass in the argument for the whole <code>tle</code> array rather than any particular index of it. How would I go about this.</p>
  
  <p>Apologies if i'm not making it clear.</p>