I have the following problem:
I have a arraylist called "list" which contains objects of the class "SampleClass", the objects have a property "name". Now I would like to remove a object with a certain "name" value, without knowing the index.
I have tried the following:
list.remove(SampleClass("Village"))
So, the idea would be that the instance of SampleClass where the property name contains "Village" is removed from the list.
It compiles allright, but its not working.
SampleClassinto adata class?