# The remove method exist on the ArrayList itself and not on an entry. So, you must call user.remove(i) to remove the object from the ArrayList.