Given that an array named a whose elements are of type int has been declared, assign the value -1 to the last element in a.
LANGUAGE: JAVA
CHALLENGE:
Given that an array named a whose elements are of type int has been declared, assign the value -1
to the last element in a.
SOLUTION:
a[a.length - 1] = -1;