the middle of list
\n\n\nclass Solution {\n    public int lenList(ListNode head)\n    {\n        int ch = 0;\n        while (head != null) {\n            head = head.next;\n      
\n```\n\nclass Solution {\n    public int lenList(ListNode head)\n    {\n        int ch = 0;\n        while (head != null) {\n            head = head.next;\n            ch++;\n        }\n        return ch;\n    }\n    public ListNode middleNode(ListNode head) {\n        int len = lenList(head);\n        for (int i = 0; i < len/2; i++)\n            head = head.next;\n        return head;\n    }\n}\n```
['Java']