Overview
Returns the element at indexindex in the list stored at key. The index is zero-based. Negative indices can be used to designate elements starting from the tail of the list.
Method Signature
Parameters
The key of the list.
The index of the element to retrieve (zero-based). Negative indices count from the end of the list (e.g.,
-1 is the last element, -2 is the second-to-last).Return Value
The element at the specified index, or
null if the index is out of range or the list does not exist.