| 11 | public class LinkLoop { |
| 12 | |
| 13 | public static class Node{ |
| 14 | private Object data ; |
| 15 | public Node next ; |
| 16 | |
| 17 | public Node(Object data, Node next) { |
| 18 | this.data = data; |
| 19 | this.next = next; |
| 20 | } |
| 21 | |
| 22 | public Node(Object data) { |
| 23 | this.data = data ; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * 判断链表是否有环 |
nothing calls this directly
no outgoing calls
no test coverage detected