Question: 1. Write code that sets each element of an array called items to twice the value in that array element.
2. Write code that prints half of the values stored in an array called items from front.
3. Write code that sets every element of a boolean array called multiples to true, whose position in the array is a multiple of
4. Write a method called average Array that accepts an array of integers and returns the average of the values stored in the array.