#How to remove an object from HashSet and then return said Object from hashset as well

3 messages · Page 1 of 1 (latest)

quartz leaf
#

My problem can be explained quite simply here :https://stackoverflow.com/questions/41130046/remove-an-object-from-a-hashset-in-java

I want to do the same thing as this person but also with the added complication of returning the said object as well. How would I do this guys? Thank you

severe pagodaBOT
#

Hey, @quartz leaf!
Please remember to /close this post once your question has been answered!