title: Setters and getters for Array of LinkedList
body: <p>I have a class that called <code>Entries</code> that holds my constructor along with its getters and setters.</p>
  
  <p>In a new class, I have : </p>
  
  <pre><code>private LinkedList&lt;Entry&gt;[] Entries = new LinkedList[26];
  
  public void changeNumber(String number, String numberChange) {
    for (int i = 0; i &lt; myEntries.length; i++){
  
  
          if (myEntries[i].getNumber().equals(number)){
              myEntries[i].setNumber(numberChange);
              break;
          }
      }
  }
  </code></pre>
  
  <p>However, I am receiving errors for my setters and getters. This does not happen when I use a straight array or straight <code>LinkedList</code>, as I've already got this method working for those two in two different classes. </p>
  
  <p>The error messages I'm receiving for both are </p>
  
  <blockquote>
    <p>The method getNumber() is undefined for the type LinkedList
    and The method getNumber() is undefined for the type LinkedList</p>
  </blockquote>
  
  <p>I don't see why they're undefined as when I've tried doing the same method for a straight <code>Array</code> and a pure <code>LinkedList</code>, they've handled it fine and functioned properly. </p>
  
  <p>If anyone has any suggestions, I would really appreciate it.</p>