title: remove an element from a linked list
body: <p>I need help to remove an element from a linked list, by user prompt. Any help is appreciated. This is what I have so far, but it doesn't seem to work.</p>
  
  <pre><code>public void removeList(LinkedList someList)
  {
  
      System.out.println(someList);
      Scanner input = new Scanner(System.in);
  
      System.out.println("Enter a String to Delete:");
      String s = input.nextLine();
  
      for(int i = 0; i &lt; someList.size(); i++)
      {
      if(s.equals(someList))
      {
      someList.remove(s);
      System.out.println(someList.get(i));
      }
  }
  </code></pre>