title: Java: Int Array, measure the length of the array element
body: <p>In Java.  Let's say you're given the following Array. Or something similar</p>
  
  <pre><code>int[] anArray = {10, 20, 30, 40, 1000};
  </code></pre>
  
  <p>Is there a way to take the length of the array <strong>element</strong> at anArray[4]; ? </p>
  
  <p>I need to know if the array[x] is == 4. As in 2004, or 1000, or 1968. </p>
  
  <p>How can i do this? </p>