How to declare array elements volatile in Java? How to declare array elements volatile in Java? arrays arrays