@@ -0,0 +1,464 @@
+%0Apublic class LeetCode0083 %7B%0A%0A%09class ListNode %7B%0A%09%09int val;%0A%09%09ListNode next;%0A%0A%09%09ListNode(int x) %7B%0A%09%09%09val = x;%0A%09%09%7D%0A%09%7D%0A%0A%09public ListNode deleteDuplicates(ListNode head) %7B%0A%09%09ListNode dummy = new ListNode(Integer.MIN_VALUE);%0A%09%09dummy.next = head;%0A%09%09ListNode p = head;%0A%09%09ListNode pre = dummy;%0A%09%09while (p != null) %7B%0A%09%09%09if (p.val == pre.val) %7B%0A%09%09%09%09p = p.next;%0A%09%09%09%7D else %7B%0A%09%09%09%09pre.next = p;%0A%09%09%09%09pre = p;%0A%09%09%09%09p = p.next;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09pre.next = null;%0A%09%09return dummy.next;%0A%09%7D%0A%7D%0A

Add LeetCode0083.java