You are viewing a single comment's thread. Return to all comments →
Can anyone help me I am getting this error and I dont know why this is coming Please help
Solution.java:77: error: Illegal static declaration in inner class Solution.Result public static SinglyLinkedListNode deleteNode(SinglyLinkedListNode llist, int position) { ^ modifier 'static' is only allowed in constant variable declarations Solution.java:122: error: cannot find symbol SinglyLinkedListNode llist1 = deleteNode(llist.head, position); ^ symbol: method deleteNode(SinglyLinkedListNode,int) location: class Solution 2 errors****
Seems like cookies are disabled on this browser, please enable them to open this website
Delete a Node
You are viewing a single comment's thread. Return to all comments →
Can anyone help me I am getting this error and I dont know why this is coming Please help
Solution.java:77: error: Illegal static declaration in inner class Solution.Result public static SinglyLinkedListNode deleteNode(SinglyLinkedListNode llist, int position) { ^ modifier 'static' is only allowed in constant variable declarations Solution.java:122: error: cannot find symbol SinglyLinkedListNode llist1 = deleteNode(llist.head, position); ^ symbol: method deleteNode(SinglyLinkedListNode,int) location: class Solution 2 errors****