I have a homework question that simply shows a linked list of 3 elements (each one with a character in it, 'A', 'B', and 'C' respectively), with the 'head' pointer pointing at the first value of the list, and a 'current' pointer set to null. The question wants me to draw out the list after 3 insert commands are performed
list.insert('M')
list.insert('N')
list.insert'(O')
Where does these elements get put into? The beginning of the list, the end?
Also, if I did:
list.start();
list.getNext(ch);
list.getNext(ch);
list.insert('T');
Where would the T go? Between the first two elements because of the list starting at the beginning?