title: LinkedListNode in Java (Cracking the coding intervew)
body: <p>This may be a dumb question as I am not majoring in the computer. 
  I am reading <strong>Cracking the coding interview</strong> and it has the following codes. </p>
  
  <p>But Java (in eclipse) cannot recognize <code>LinkedListNode</code> but it recognize <code>LinkedList</code>. 
  Am I supposed to create a class name <code>LinkedListNode</code>, a double linked list? Shouldn't java already have that in <code>import java.util.*</code> as it does for <code>LinkedList</code>?</p>
  
  <pre><code>import java.util.*;
  public static void deleteDups2(LinkedListNode head) {
      if (head == null) return;
      LinkedListNode previous = head;
      LinkedListNode current = previous.next;
      while (current != null) {
          LinkedListNode runner = head;
          while (runner != current) { // Check for earlier dups
              if (runner.data == current.data) {
                  LinkedListNode tmp = current.next; // remove current
                  previous.next = tmp; 
                  current = tmp; // update current to next node
                  break; // all other dups have already been removed
              }
              runner = runner.next;
          }
          if (runner == current) { // current not updated - update now
              previous = current;
              current = current.next;
          }
      }
  }
  </code></pre>