This content has been marked as final. Show 4 replies
You should post some code. Without knowing what ListArrayBased.insertobject() does, it is hard to say how to access the inserted object.
An object of a given class does what the class was designed to do. If you don't know what that is, you need to read that class's documentation (API, javadoc).
u can use get the object from the arraylist by using the getter methods and assign it to a Object pointer of the Class type by typecasting it and then use the object to do whatever u want with it,
u can use something like this
1. int index=def.lastIndexOf(<object>);
2. Appointment abc =(Appointment)def.get(index);
and if u know the index of the object in the arraylist u can skip line 1.
sorry i did not see the ListArrayBased class , i mistook it for ArrayList , but even then if it works the same way as an ArrayList it should work,