Can someone solve this for me? PLEASE!
public class listNode { int data; listNode next; listNode(int d, listNode n){ data = d; next = n; } } public class list { listNode first; }
Write a Java function Sum2List that takes two lists L1 and L2 of the same size and returns list L that contains the sum of data inside the corresponding nodes of lists L1 and L2.
post.jpg