title: Use of contains in Java ArrayList<String>
body: <p>If I have an ArrayList of String forming part of a class in Java like so:</p>
  
  <p><code>private ArrayList&lt;String&gt; rssFeedURLs;</code>  </p>
  
  <p>If I want to use a method in the class containing the above ArrayList, using ArrayList  contains to check if a String is contained in this ArrayList, I believe I should be able to do so as follows:</p>
  
  <pre><code>if (this.rssFeedURLs.contains(rssFeedURL)) {
  </code></pre>
  
  <p>Where rssFeedURL is a String.</p>
  
  <p>Am I right or wrong? </p>