I have and ArrayDeque<Integer>
which I am looping through to find an element and once found I want to push it to the bottom of the deque. But it gives me java.util.ConcurrentModificationException
Error.
Any help with a demo is appreciated. Maybe using a different util as well.
using this may help you
If you are using a pojo havin the Equals implemented is sufficient to help the list to remove the wanted Object
the pojo class
use case tutorial