Main.java:12: error: cannot find symbol
public ListNode reverseList(ListNode head) {
^
symbol: class ListNode
location: class Solution
Main.java:12: error: cannot find symbol
public ListNode reverseList(ListNode head) {
^
symbol: class ListNode
location: class Solution
Main.java:15: error: cannot find symbol
ListNode cur = head;
^
symbol: class ListNode
location: class Solution
Main.java:16: error: cannot find symbol
ListNode prev = null;
^
symbol: class ListNode
location: class Solution
Main.java:17: error: cannot find symbol
ListNode next = null;
^
symbol: class ListNode
location: class Solution
5 errors