1. Write Java code for a loop that simultaneously computes 
both the maximum and the minimum of an array of numbers (R6.5). 

2. Write enhanced loops for the following tasks: