To access an element in an arraylist object