Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. public void mirror(){
  2. if (first != null) {
  3. SLLNode<E> tmp = first;
  4. SLLNode<E> newsucc = null;
  5. SLLNode<E> next;
  6. while(tmp != null){
  7. next = tmp.succ;
  8. tmp.succ = newsucc;
  9. newsucc = tmp;
  10. tmp = next;
  11. }
  12. first = newsucc;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement