title: how to remove a specific element from queue in java(not priority queue)
body: <p>How I can  remove a specific element from <code>queue</code> in <code>java(not priority queue)</code>.There is no functionality of removing <code>queue.remove(object)</code>. Please help me in this.</p>
  
  <pre><code>Queue&lt;String&gt; queue = new LinkedList&lt;&gt;();
  queue.add("hello");
  queue.add("world");
  queue.add("ranjeet");
  </code></pre>
  
  <p>I want to remove "world" from it.</p>