Question: we have a linkList of ListNode { 1 , 2 , 3 } class ListNode { int data; ListNode next; } the first node is
we have a linkList of ListNode
class ListNode
int data;
ListNode next;
the first node is n the second node is n and the third node is n Which one of the following will display on the screen
System.out.printlnnnext.next.data;
System.out.printlnnnext.data
System.out.printlnndata
System.out.printlnnnext.data;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
