You can access any element in ArrayList by using the method get(index).
import java.util.ArrayList;
public class Test {
public static void main(String[] args) {
ArrayList array = new ArrayList();
array.add(1);
array.add(2);
array.add(3);
for(int i=1; i