結果 : write a program to find the maximum and minimum element in an array in java