startsWith using error in java
<p>defined variable:</p>

<pre><code> LinkedList list1=new LinkedList();
</code></pre>

<p><code>Object get()</code> in list1 obtains a node of list1</p>

<p><code>Object remove()</code> in list1 deletes a node of list1</p>

<p><code>count()</code> is length of list1</p>

<pre><code>for(int i=1;i&lt;list1.count();i++){
  if(list1.get(i).startsWith('"',0)) //Error here
    list1.remove(i);
}
</code></pre>

<p>Error: cannot find symbol</p>

<blockquote>
  <p>symbol:   method charAt(int)<br>
  location: class Object</p>
</blockquote>

<p>how to fix this problem?
I would like to delete the node in list1 which starts with (").</p>
