fastPtr =fastPtr.next.next;}//Handling the case when slowPtr was equal to head.if(prevPtr !=null) {//赋值结束后pre已经是slow即中间元素的上一步prevPtr.next=null;//从中间元素左侧断开,此时初始链表head已经只剩一半了,另一半是slowPtr.next开头的链表}returnslowPtr;//最后返回中间元素结点}public...