title: Get values from methods in objects that are in arraylist?
body: <pre><code>ArrayList&lt;Customer&gt; customerList = new ArrayList&lt;Customer&gt;();
  // add object to arraylist
  customerList.add(customer);
  
  // get objects from arraylist
  customerlist.get(0);
  </code></pre>
  
  <p>But how do I get the value from a method that is inside the class like if I have a method like getCustomerName() inside and I want the name in return or perhaps I want to change or add something to a method. How do I write the call? Preciate some help! Thanks!</p>