public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } }*/ public class Solution { public ListNode ReverseList(ListNode head) { //新建一个链表 ListNode newHead=null; while(head!=null){ //存储原链表的下一结点 ...