Deleting all occurrences in a circular linked list. (java)

I want to implement a method that deletes all occurences of a certain value given as argument. I created 2 temporary elements and referenced them to the head and I will be browsing the list using them….