title: recommended way to find a word in a comma-separated string?
body: <p>I want to find if a <code>utility</code> is in one of the <code>utilities</code>. </p>
  
  <p>I have a <code>JUnit</code> test as following</p>
  
  <pre><code>@Test
  public void testUtilityInUtilities() {
      final String utilities = "Pacific Gas &amp; Electric (PG&amp;E),San Diego Gas &amp; Electric (SDG&amp;E), Salt River Project (SRP),Southern California Edison (SCE)";
      final String utility = "San Diego Gas &amp; Electric (SDG&amp;E)";
      assertTrue(utilities.contains(utility));
  }
  </code></pre>
  
  <p>Is it a good enough test? or shall I do something similar to following?</p>
  
  <pre><code>String[] splitString = (utilities.split(","));
  for (String string : splitString) {
      if (string.equals(utility)) {return true;}
  }
  return false;
  </code></pre>
  
  <p>which method is recommended? <strong>split</strong> or <strong>contains</strong> or anything else?</p>