Examlex

Solved

Insert the Missing Code in the Following Code Fragment

question 29

Multiple Choice

Insert the missing code in the following code fragment. This fragment is intended to add a new node to the head of a linked list: public class LinkedList
{
) . .
Public void addFirst(Object element)
{
Node newNode = new Node() ; 1
NewNode.data = element;
_________ 2
_________ 3
}
) . .
}


Definitions:

Related Questions