STRUCTURE TIME Flashcards
1
Q
Write a list node class
A
public class ListNode{
public int data public ListNode next; }
2
Q
What does each list node object store?
A
- one piece of integer data
- a reference to another list node