From 732d006f3b76b8a4f03519b1a33c89c72d921aae Mon Sep 17 00:00:00 2001 From: wsy182 <2392948297@qq.com> Date: Tue, 9 Jul 2024 22:46:00 +0800 Subject: [PATCH] Create test.java --- src/main/java/com/nbee/solution/solution/test.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/com/nbee/solution/solution/test.java diff --git a/src/main/java/com/nbee/solution/solution/test.java b/src/main/java/com/nbee/solution/solution/test.java new file mode 100644 index 0000000..520e137 --- /dev/null +++ b/src/main/java/com/nbee/solution/solution/test.java @@ -0,0 +1,14 @@ +package com.nbee.solution.solution; + + +public class test { + public static void main(String[] args) { + ListNode head = new ListNode(1); + head.next = new ListNode(1); + head.next.next = new ListNode(1); + head.next.next.next = new ListNode(2); + + ListNode result = Solution.deleteDuplicates(head); + System.out.println(result.toString()); + } +}