Answer:
Following are the code to this question:
a[0] = a[a.length-1] * 2; //assign value in the first element in array
Explanation:
In the given question, it is declared, that an array list "a" is declared, that contains only integer number, in which we assign a number in the array list first element so, the code to this question can describe as follows: