final
only can make a reference unchangeable.If I declare a array like this:
private final int[] a = {1,2,3,4,5};
I can change the value of a[i]
just by using
a[i]++;
How can I do to make sure the element of array will not be changed during the program running?