X739: Element in ArrayList

Complete the function getElementAt() so that it returns the element nth in the ArrayList contents. Make sure that the parameter nth is a valid index into the Arraylist (i.e., don't assume that there is an element at that position). If nth is not valid, return null.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.