To get the length of an Array, or the length of any collection for that matter, you can use the length method. It is called on a collection and doesn’t take any parameters. Running the code below will give you the length of intArray.
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!