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