[Solved] Add a method to an exited ArrayList
Calling arrValue.get(i) fetches you the object of FuelData class at ith index in the arrValue arraylist. Now, if the method getOdometer() is defined inside FuelData – You should be able to access it using the below statement arrValue.get(i).getOdometer(“value1”, “value2”, “value3”) Make sure getOdometer method returns a string or atleast it returns something. Also, as I … Read more