title: Comparing string elements stored in ArrayList
body: <p>I have a string arraylist</p>
  
  <pre><code>ArrayList&lt;String&gt; data = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>and I have stored string values inside. Now i want to do something like</p>
  
  <pre><code>data.get(0) == "a" // (need to compare)
  </code></pre>
  
  <p>How can I do? please help out.</p>