ArrayList<Customer> customerList = new ArrayList<Customer>();
// add object to arraylist
customerList.add(customer);
// get objects from arraylist
customerlist.get(0);
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!