Update RemoveItem.java

added a better solution