Next:
Using iterator() Method
Up:
Access ArrayList Elements
Previous:
Access ArrayList Elements
Contents
Using
get()
Method
To randomly access elements of an array list, we use the
get()
method. For example,
Output