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