title: Why isn't .length() a method for arrays in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9297899/java-arrays-length-property">Java - Array’s length property</a><br>
    <a href="https://stackoverflow.com/questions/12082196/string-length-vs-array-length">String.length() vs Array.length</a>  </p>
  </blockquote>
  
  
  
  <p>I'm currently in my AP Computer Science class in high school and I came across this in my reading.</p>
  
  <p>From what I understand, <code>.length()</code> is a method used for strings, but why isn't <code>.length()</code> a method when applied on arrays? I understand that they're different objects, but why didn't Java just make another method for finding the length of arrays?</p>
  
  <p>I appreciate any response I get. Thanks!</p>