title: Element position in array
body: <p>I have an array:</p>
  
  <pre><code>char[] modifiers = {'A', 'M', 'D'};
  </code></pre>
  
  <p>and a variable:</p>
  
  <pre><code>char a = 'D'
  </code></pre>
  
  <p>How to get position of variable value in array? </p>
  
  <p>Thanks</p>