how to get an element from arraylist in java code example Example: arraylist get value at index java get(index);