ariestamirra

hapus depan

Nov 27th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1.   public static <T> Node hapusNode_Akhir(Node<T> front) {
  2.         Node temp = front;
  3.         if (temp != null) {
  4.             while (temp.next.next != null) {
  5.                 temp = temp.next;
  6.             }
  7.             temp.next = null;
  8.         }
  9.         return front;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment