(Node head)
| 107 | } |
| 108 | |
| 109 | public static int length(Node head){ |
| 110 | int ret=0; |
| 111 | while(head!=null) |
| 112 | { |
| 113 | ret += 1; |
| 114 | head = head.next; |
| 115 | } |
| 116 | return ret; |
| 117 | } |
| 118 | |
| 119 | public static void main (String[] args){ |
| 120 | Scanner sc = new Scanner(System.in); |
no outgoing calls
no test coverage detected