title: I want to Display all values in arraylist to textarea, How can I achieve that?
body: <p>I want to Display all the items in a array list into text area. I tried following but it only display last item.</p>
  <pre><code>public void printAllValues(){
      try {
          ExpenseDAO exdao = new ExpenseDAO();
          ArrayList&lt;String&gt; list = exdao.getAllexpenses();
          for (int i = 0; i &lt; list.size(); i++)
          txtexpense.setText(list.get(i));
      } catch (Exception ex) {
          Logger.getLogger(ExpenseManager.class.getName()).log(Level.SEVERE, null, ex);
      }
      
  
  }
  </code></pre>