title: How to find index of int array which match specific value
body: <p>I have</p>
  
  <pre><code>int myArray[]= {12,23,10,22,10}; 
  </code></pre>
  
  <p>So i want to get <code>index of 23</code> from  <code>myArray</code> with out iterating any loop (<code>for</code> ,<code>while</code> ...) .</p>
  
  <p>I would do something like <code>Arrays.asList(myArray).indexOf(23)</code> </p>
  
  <p>This is not work for me . I get <code>-1</code> as output .</p>
  
  <p>This is work with <code>String[]</code> 
  Like </p>
  
  <pre><code>  String myArray[]= {"12","23","10","22","10"}; 
    Arrays.asList(myArray).indexOf("23")
  </code></pre>
  
  <p>So why this is not working with <code>int[]</code> ? ? </p>