0
/ 10
Complete the function getElementAt()
so that it returns the element nth
in the ArrayList contents
. Make sure that the parameter nth
is a...
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 feedback will appear here when you check your answer.