When you use the former one, Java tries to match the Integerobject in your list, rather than removing the object at the specified index. In most cases, this will not be what you want. Be especially careful when doing things like: