public class Solution {
ArrayList < Integer > arrayList=new ArrayList < Integer > ();
public ArrayList<Integer> printListFromTailToHead(ListNode listNode) {
if(listNode!=null){
this.printListFromTailToHead(listNode.next);
arrayList.add(listNode.val);
}
return arrayList;
}
doesn"t understand the meaning of this in the code, and arrayList.add (listNode.val); add a value that you don"t know about this node? Why is it the value an of the next node? Ask for the answer of the Great God