X620: Size of array

Complete the function getArraySize() so that it returns the size of the array passed in as an argument into the function. You cannot use a loop to count the elements in the array.

Examples:

getArraySize({1,3,5}) -> 3

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.