Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Method that deletes the current element
- public void deleteCurrent()
- {
- if (current != null && previous != null)//Current is not at head
- {
- previous.link = current.link;
- current = current.link;
- }
- else if (current != null && previous == null)//Current is at the head
- {
- head = head.link;
- }
- else if (current == tail)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement