結果 : print the maximum and minimum element of array in java