The get() method of List interface in Java is used to get the element present in this list at a given specific index . Syntax : E get(int index) Where, E is the type of element maintained by this List container.
The get() method of List interface in Java is used to get the element present in this list at a given specific index . Syntax : E get(int index) Where, E is the type of element maintained by this List container.