title: Deleting a node from a double linked list in java
body: <p>Hello I have a double linked list set up, and i have a search working for it and all that stuff, i just want to delete from it too.</p>
  
  <p>For my search i have:</p>
  
  <pre><code>public void firstNameSearch(String name)
  {
      Node u = header;
      while (u != null &amp;&amp; u.list() != name )
      {
          System.out.println("Searching List...");
              u = u.getNext();
      }
      if (u.list() == name)
      {
          // what do I need to put here to delete it
  
      } 
  }
  </code></pre>
  
  <p>I have looked through over post on stack overflow, but the ones i found were in C, so weren't a great help, I understand the concept on how to make it delete the node, just can't get it functional.</p>
  
  <p>Thank you in advance.</p>