I am maintaining one ArrayList of objects. And my object structure is Id, name, some other details. I need to remove one the object with some id value say(10) a
ArrayList
If you really do not want to iterate over the list, you could use a stream but I personnally prefer Collection#removeIf like @TagirValeev suggested
Collection#removeIf
myList = myList.stream() .filter(x -> x.id() != 10) .collect(Collectors.toList());