How to display element count in an Array? : <p>I'm trying to display the number of elements in an Array that I have made. It is a regular Array with a string as the data type. If it is possible to display the total number of elements in an Array, will the code be similar to an ArrayList's? </p>

<pre><code>    String[] list = new String[14];
    list = new String[] {"Bob", "Sal", "Jimmy" ,"John"};


    list = insert(list, "Joe", 0);
    list = insert(list, "Manny", list.length);
    list = insert(list, "Joey", list.length/2);



    System.out.println(Arrays.toString(list));

}

public static String[] insert(String[] original, String value, int k) {
    String[] copy = new String[original.length + 1];


    for(int i=0; i&lt;k; i++)
    {
        copy[i] = original[i];
    }


    copy[k] = value;


    for(int i=k; i&lt;original.length; i++)
    {
        copy[i+1] = original[i];
    }


    return copy;
}
</code></pre>
