Name

Array.length — find the length of an array

Synopsis

int Array.length ( );  

Description

Returns the length of the array.

Example 57. Array.length Example

int[] arraycopy(int[] src)
{
    int[] a;
    a.resize(src.length(), 0);

    for(int i = 0; i < src.length(); i++)
        a[i] = src[i];
        
    return a;
}