What is LinkedListNode in Java
Excuse my ignorance but I am beginning to prepare for my first technical interview and came across this question and answer on the topic linkedlist

**Question: Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node**

<pre>
public static boolean deleteNode(LinkedListNode n) {
if (n == null || n.next == null) {
   return false; // Failure
}
LinkedListNode next = n.next;
n.data = next.data;
n.next = next.next;
return true;
}
</pre>

I want to start playing with this code (making changes compile test) but I'm not sure how to start doing this in Java. I cannot find the LinkedListNode class in Java docs.

This might be a very silly question but if someone can point me in the right direction - will appreciate it.

thanks
What is LinkedListNode in Java
===

Excuse my ignorance but I am beginning to prepare for my first technical interview and came across this question and answer on the topic linkedlist

**Question: Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node**

<pre>
public static boolean deleteNode(LinkedListNode n) {
if (n == null || n.next == null) {
   return false; // Failure
}
LinkedListNode next = n.next;
n.data = next.data;
n.next = next.next;
return true;
}
</pre>

I want to start playing with this code (making changes compile test) but I'm not sure how to start doing this in Java. I cannot find the LinkedListNode class in Java docs.

This might be a very silly question but if someone can point me in the right direction - will appreciate it.

thanks