<prompt> Kuandika programu Java ambayo hupata idadi ya juu kutoka safu fulani  <response>: Here is a java program to find the maximum number from a given array:javapublic class FindMax public static void mainString args int numbers 3,8,10,4,90,2,16,-4; example of array int max findMaxnumbers; calling findMax method System.out.printlnMaximum value in array is max; public static int findMaxint array int max array0; initialize max to first element forint i1;imax compare and update max value max arrayi; return max; returning maximum In this program, we define the findMax method that takes an array of integers as an argument and returns the maximum value in the array. Inside the findMax method, we initialize the max variable to the first element of the array, then we iterate through the array comparing each element with the current value of max. If the element is greater than the current value of max, we update it. Finally, we return the maximum value. 