title: Looping through a Java array and append() to a TextArea
body: <p>After more than a couple of days I am still unable to populate a text area by going through an array as I can in other languages. I have tried Google, YouTube, stackoverflow, and others and I am still unable to use any examples to help me do this. I have also referenced Java texts. Here is exactly what I am trying to do:</p>
  
  <pre><code>public void getDrinks() {
      //System.out.println(theDrinks[arrayCount].toString());
  
      for(int i=0; i&lt;arrayCount; i++) {
          area.append(theDrinks[i].toString());
      }
  }
  </code></pre>
  
  <p>This code works in other languages but something is wrong with the way I am using the <code>TextArea</code> or the array because I am getting a null pointer. I would love to paste the entire program, but that is not working either. This is the only part that will even remotely paste correctly. Please help me if you can.</p>