title: Recursively remove all occurrences of an item in a linked list
body: <pre><code>public static Node deleteAll(Node front, String target){
      if (front == null){ return null;}
      if (front.data.equals(target)){
          return deleteAll(front.next,target);
      }
      front.next=deleteAll(front.next,target);
      return front;
  }
  </code></pre>
  
  <p>I'm trying to walk through this solution, but it is confusing me. Why doesn't it always result as null since at the end front will equal null.</p>