Why have to use value.length? : <p>guys.....Please help!!!</p>

<p><a href="https://i.stack.imgur.com/ZFaRN.png" rel="nofollow noreferrer">This is the picture of a textbook page that I'm reading</a></p>

<p>So I'm reading this textbook which is totally horrible, they just give codes out without any explanation.....And this is my first class in Java, I've never coded in any language before......So like a textbook without explanation just totally....you know....give me a super hard time....</p>

<p>Back to topic, in the picture, there are 2 sets of codes, A and B.....I understand B......But I do not get why in A, it used <code>value.length</code> instead of <code>inputs.length</code>? Isn't the array name in this code is <code>inputs</code>??? Is there any specific reason has to use <code>value.length</code> instead of <code>array name.length</code>???</p>
