####反转链表public static void fanlian(Node node){ Node pre =null; Node next =null; while (node!=null){ next = node.getNext(); node.setNext(pre); pre=node; node =next; }}
jz015
原文:https://www.cnblogs.com/rxqdsg/p/14803559.html