I am trying various methods in a circular linked list in java and one of them is to delete the rear element. I’m pretty sure that my logic is correct but I think there is something wrong in my code. The logic is to browse the list until cur.next is before the rear element and then delete it. Then I