Check 4th elements of an arraylist and compare it to an element

Check 4th element of an arraylist and compare it to an element.
example:

1,1,2,4,1,2,3,4,1,2,5,1.

so the 4th elements would be 4,4,1 and i want to compare that those numbers are the same as 4.

I was thinking an if statemet would work. any recomendations?