title: In Java, how can I determine if a char array contains a particular character?
body: <p>Here's what I have:</p>
  
  <pre><code>char[] charArray = new char[] {'h','e','l','l','o'};
  </code></pre>
  
  <p>I want to write something to the effect of:</p>
  
  <pre><code>if(!charArray contains 'q'){
       break;
  }
  </code></pre>
  
  <p>I realize that .contains() can't be used here. I am just using "contains" to illustrate what I'm trying to do. </p>