@@ -0,0 +1,545 @@
+class ListNode %7B%0A    int val;%0A    ListNode next = null;%0A%0A    ListNode(int val) %7B%0A        this.val = val;%0A    %7D%0A%7D%0A%0Apublic class ReverseList %7B%0A    public ListNode reverseList(ListNode head) %7B%0A%09%09ListNode reverseNode = null;%0A        ListNode node  = head;%0A        ListNode prev = null;%0A        while(node != null)%7B%0A            ListNode pnext = node.next;%0A            if(pnext == null)%0A                reverseNode = node;%0A            node.next = prev;%0A            prev = node ;%0A            node = pnext;%0A        %7D%0A        return reverseNode;%0A    %7D%0A%7D%0A

Create ReverseList.java